src/main/java/ognl/OgnlRuntime.java
public static Object callMethod(OgnlContext context, Object target, String methodName, Object[] args)
            throws OgnlException
    {
        if (target == null)
            throw new NullPointerException("target is null for method " + methodName);

        return getMethodAccessor(target.getClass()).callMethod(context, target, methodName, args);
    }
public static Object callMethod(OgnlContext context, Object target, String methodName, Object[] args)
            throws OgnlException
    {
        if (target == null)
            throw new NullPointerException("target is null for method " + methodName);

        return getMethodAccessor(target.getClass()).callMethod(context, target, methodName, args);
    }
Invokes the specified method against the target object.

@param context
The current execution context.
@param target
The object to invoke the method on.
@param methodName
Name of the method - as in "getValue" or "add", etc..
@param args
Optional arguments needed for method.
@return Result of invoking method.

@throws OgnlException For lots of different reasons.