return expression.getValue();
try { return expression.getValue(); } catch( Throwable e ) { final String error = "Internal error while evalue expression using:" + "\n target: " + m_target + " (" + target + ")" + "\n method: " + m_method + " (" + method + ")" + "\n value: " + m_value + "(" + value + ")"; throw new ValueException( error, e ); }
    private Object resolveSimpleExpression( Object target, Map map, ClassLoader classloader ) throws Exception    {        String method = getMethodName();        Object value = expandSymbols( map, m_value );        boolean isaClass = ( target.getClass() == Class.class );        if( null == method )        {            if( isaClass )            {                method = "new";            }            else            {                final String error =                   "Missing method declaration in value construct for the target ["                  + target                   + "].";                throw new ValueException( error );            }        }        else        {            if( isaClass && ( null == value ) )            {                // check if the method name is a static field                Class c = (Class) target;                try                {                    Field field = c.getField( method );                    return field.get( c );                }                catch( NoSuchFieldException e )                {                    // assume its a method                }            }        }                if( value == null )        {            Expression expression = new Expression( target, method, new Object[0] );            return expression.getValue();        }        else        {            Expression expression =  new Expression( target, method, new Object[]{ value } );            return expression.getValue();        }    }