if ( pattern.getRightPattern() instanceof FreeFormLine ) {
// this allows MVEL to skip the collect, if any vars are empty
// note this actually duplicates another inner check for the FFL itself
// @TODO the FFL should get a reference to the parent, so it can avoid this duplication.
final FreeFormLine ffl = (FreeFormLine) pattern.getRightPattern();
if ( ffl.getText() == null ) {
return;
}
final Matcher matcherTemplateKey = patternTemplateKey.matcher( ffl.getText() );
boolean found = matcherTemplateKey.find();
if ( found ) {
buf.append( "@if{" );
boolean addAnd = false;
while ( found ) {