if (type.equals(ConfigurationModuleType.CAR)) {
result = config.findGBean(new AbstractNameQuery(AppClientModule.class.getName()));
} else if (type.equals(ConfigurationModuleType.EAR)) {
result = config.findGBean(new AbstractNameQuery(J2EEApplication.class.getName()));
} else if (type.equals(ConfigurationModuleType.EJB)) {
result = config.findGBean(new AbstractNameQuery(EJBModule.class.getName()));
} else if (type.equals(ConfigurationModuleType.RAR)) {
result = config.findGBean(new AbstractNameQuery(ResourceAdapterModule.class.getName()));
} else if (type.equals(ConfigurationModuleType.WAR)) {
result = config.findGBean(new AbstractNameQuery(WebModule.class.getName()));
} else {