src/main/java/ognl/Ognl.java
public static Object getValue(String expression, Map context, Object root)
            throws OgnlException
    {
        return getValue(expression, context, root, null);
    }
public static Object getValue(String expression, Map context, Object root)
            throws OgnlException
    {
        return getValue(expression, context, root, null);
    }
Evaluates the given OGNL expression to extract a value from the given root object in a given
context

@see #parseExpression(String)
@see #getValue(Object,Object)
@param expression
the OGNL expression to be parsed
@param context
the naming context for the evaluation
@param root
the root object for the OGNL expression
@return the result of evaluating the expression
@throws MethodFailedException
if the expression called a method which failed
@throws NoSuchPropertyException
if the expression referred to a nonexistent property
@throws InappropriateExpressionException
if the expression can't be used in this context
@throws OgnlException
if there is a pathological environmental problem