if (isFunctionDefinition(child)) {
registerFunction(child, functionByName);
} else if (isDateParserDefinition(child)) {
registerDateParser(child, dateParsers);
} else {
throw new ValidationConfigurationException("unknown element '" + child.getTagName() + "'");
}
}
builder.addPropertyValue("customFunctions", functionByName);
builder.addPropertyValue("dateParsers", dateParsers);