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

@param tree
the OGNL expression tree to evaluate, as returned by parseExpression()
@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

@deprecated it will be removed soon