for (Pair<String, String> bootstrapperPair : orderedBootstrappers.values()) {
LOG.info("Bootstrapping module with ID " + bootstrapperPair.first() + ", using " + bootstrapperPair.other());
try {
RuntimeModuleBootstrapper bootstrapper = (RuntimeModuleBootstrapper) Class.forName(bootstrapperPair.other()).newInstance();
runtime.registerModule(bootstrapper.bootstrapModule(bootstrapperPair.first(), findModuleConfig(bootstrapperPair.first()), database));
} catch (Exception e) {
LOG.error("Unable to bootstrap module " + bootstrapperPair.first(), e);
}
}
}