public boolean parse ( String criteria , Map < String , ? extends Object > attributes ) throws CriteriaParseException { if ( criteria == null ) { return true ; } else { try { return Boolean . parseBoolean ( FREEMARKER_BUILTINS . eval ( criteria , attributes ) ) ; } catch ( TemplateException ex ) { throw new CriteriaParseException ( ex ) ; } } }
Parses the provided criteria expression which must have a boolean value .