private void registerHandlersPackage(HandlersPackage handlersPackage, HierarchicalConfiguration handlerConfig, List<HierarchicalConfiguration> children) throws ConfigurationException {
List<String> c = handlersPackage.getHandlers();
for (String cName : c) {
try {
CombinedConfiguration conf = new CombinedConfiguration();
HierarchicalConfiguration cmdConf = addHandler(cName);
conf.addConfiguration(cmdConf);
if (handlerConfig != null) {
conf.addConfiguration(handlerConfig);
}
children.add(conf);
} catch (ConfigurationException e) {
throw new ConfigurationException("Unable to create configuration for handler " + cName, e);
}