// date: prefix
remainder = ifStartsWithReturnRemainder("date:", expression);
if (remainder != null) {
String[] parts = remainder.split(":");
if (parts.length != 2) {
throw new IllegalSyntaxException(this, expression + " ${date:command:pattern} is the correct syntax.");
}
String command = parts[0];
String pattern = parts[1];
return ExpressionBuilder.dateExpression(command, pattern);
}
// bean: prefix
remainder = ifStartsWithReturnRemainder("bean:", expression);
if (remainder != null) {
return ExpressionBuilder.beanExpression(remainder);
}
throw new IllegalSyntaxException(this, expression);
}