ClassLoader classLoader = DiscoveryIO.class.getClassLoader();
for (String module : modules) {
log.info("Loading metric discovery module " + module);
try {
Class discoveryClass = classLoader.loadClass(module);
DiscoveryIO discoveryIOModule = (DiscoveryIO) discoveryClass.newInstance();
log.info("Registering metric discovery module " + module);
registerIO(discoveryIOModule);
} catch (InstantiationException e) {
log.error("Unable to create instance of metric discovery class for: " + module, e);
} catch (IllegalAccessException e) {