}
config.setRegistry(RegistryFactory.createRegistry(elem));
}
private static void defineStartup(SynapseConfiguration config, OMElement elem) {
Startup startup = StartupFinder.getInstance().getStartup(elem);
if (config.getStartup(startup.getName()) != null) {
handleException("Duplicate startup with name : " + startup.getName());
}
config.addStartup(startup);
}