private Object getValue(Entry entry, Class type) {
        Object value = entry.getValue();
        if (type== Expression.class)
            value = new ConstantExpression(entry.getValue());
        return value;
    }
private Object getValue ( Entry entry , Class type ) { Object value = entry . getValue ( ) ; if ( type == Expression . class ) value = new ConstantExpression ( entry . getValue ( ) ) ; return value ; }
Obtains the value from the map entry in the right type.