}
}
// Validate configuration
ConfigurationValidator configurationValidator = new ConfigurationValidator(configurationFactory, warningsMonitor);
List<Message> messages = configurationValidator.validate(modules);
// at this point all config file properties should be used
// so we can calculate the unused properties
final TreeMap<String, String> unusedProperties = Maps.newTreeMap();
unusedProperties.putAll(requiredProperties);