// return null;
// }
public static String getConfigId(IModule module) throws Exception {
EnvironmentType environment = null;
if (isWebModule(module)) {
JAXBElement<WebAppType> webapptype=getWebDeploymentPlan(module);
WebAppType plan = webapptype.getValue();
if (plan != null)
environment = plan.getEnvironment();
} else if (isEjbJarModule(module)) {
OpenejbJarType plan = getOpenEjbDeploymentPlan(module).getValue();
// if (plan != null)
// environment = plan.getEnvironment();
} else if (isEarModule(module)) {
ApplicationType plan = getApplicationDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
} else if (isRARModule(module)) {
ConnectorType plan = getConnectorDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
if (environment != null
&& environment.getModuleId() != null) {
Trace.tracePoint("EXIT", "GeronimoV11Utils.getConfigId", getQualifiedConfigID(environment.getModuleId()));
return getQualifiedConfigID(environment.getModuleId());
}
return getId(module);
}