public Method getMethod(final String methodName, final Class<?> parameterClass) {
        Class<?> containerClass = actionContainer.getClass();
        while (containerClass != null) {
            try {
                // If this does not throw an exception, the method is found. Null check is not needed.
                return getDeclaredMethod(containerClass, methodName, parameterClass);
            } catch (final Exception exception) {
                Exceptions.ignore(exception); // Expected. Method unavailable.
            }
            containerClass = containerClass.getSuperclass();
        }
        return null;
    }
public Method getMethod ( final String methodName , final Class < ? > parameterClass ) { Class < ? > containerClass = actionContainer . getClass ( ) ; while ( containerClass != null ) { try { return getDeclaredMethod ( containerClass , methodName , parameterClass ) ; } catch ( final Exception exception ) { Exceptions . ignore ( exception ) ; } containerClass = containerClass . getSuperclass ( ) ; } return null ; }
@param methodName name of the possibly contained method.
@param parameterClass class of the expected parameter. Optional.
@return method with passed name and one or zero parameters. Might be null.