protected Object filterEvaluated(String exp, Map<String, ? extends Object> contextMap, LaContainer container, Object evaluated,
            Class<?> resultType) {
        if (evaluated instanceof String) {
            // e.g. jp. cannot create the instance with this error,
            // ReferenceError: "jp" is not defined in <eval> at line number 1
            // (com. and org. can do it)
            // so you can create by quoted string expression: "new jp.dbflute.SeaLogic()"
            final String str = ((String) evaluated).trim();
            final String prefix = "new ";
            final String suffix = "()";
            if (str.startsWith(prefix) && str.endsWith(suffix)) {
                final String className = str.substring(prefix.length(), str.length() - suffix.length());
                try {
                    return LdiClassUtil.newInstance(className);
                } catch (RuntimeException e) {
                    throwExpressionClassCreateFailureException(exp, contextMap, container, className, e);
                }
            }
        }
        if (evaluated instanceof Map) {
            @SuppressWarnings("unchecked")
            final Map<String, Object> map = (Map<String, Object>) evaluated;
            return handleMap(exp, contextMap, container, map, resultType);
        }
        return evaluated;
    }
protected Object filterEvaluated ( String exp , Map < String , ? extends Object > contextMap , LaContainer container , Object evaluated , Class < ? > resultType ) { if ( evaluated instanceof String ) { final String str = ( ( String ) evaluated ) . trim ( ) ; final String prefix = "new " ; final String suffix = "()" ; if ( str . startsWith ( prefix ) && str . endsWith ( suffix ) ) { final String className = str . substring ( prefix . length ( ) , str . length ( ) - suffix . length ( ) ) ; try { return LdiClassUtil . newInstance ( className ) ; } catch ( RuntimeException e ) { throwExpressionClassCreateFailureException ( exp , contextMap , container , className , e ) ; } } } if ( evaluated instanceof Map ) { @ SuppressWarnings ( "unchecked" ) final Map < String , Object > map = ( Map < String , Object > ) evaluated ; return handleMap ( exp , contextMap , container , map , resultType ) ; } return evaluated ; }
=========