// make sure that either url or host/port are configured
String[][] attributeGroups = new String[][] {
new String[] {"url"},
new String[] {"host", "port"}
};
CheckExclusiveAttributes attributeCheck = new CheckExclusiveAttributes(attributeGroups);
parser.registerPreProcessor(attributeCheck);
// make sure that either url or database is configured
parser.registerPreProcessor(new CheckDatabaseOrUrl());