}
}
Class<? extends IModuleFactory> factory = guice.moduleFactory();
if (factory != IModuleFactory.class) {
try {
IModuleFactory factoryInstance = factory.newInstance();
Module moduleClass = factoryInstance.createModule(m_testContext, testClass);
if (moduleClass != null) {
result.add(moduleClass);
}
} catch (InstantiationException e) {
throw new TestNGException(e);