//}
public static String getConfigId(IModule module) throws Exception {
Trace.tracePoint("ENTRY", "GeronimoV21Utils.getConfigId", module);
Environment environment = null;
if (isWebModule(module)) {
if (getWebDeploymentPlan(module)!=null) {
WebApp plan = getWebDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
else if (isEjbJarModule(module)) {
if (getOpenEjbDeploymentPlan(module)!=null) {
OpenejbJar plan = getOpenEjbDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
else if (isEarModule(module)) {
if (getApplicationDeploymentPlan(module)!=null) {
Application plan = getApplicationDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
else if (isRARModule(module)) {
if (getConnectorDeploymentPlan(module)!=null) {
Connector plan = getConnectorDeploymentPlan(module).getValue();
if (plan != null)
environment = plan.getEnvironment();
}
}
if (environment != null
&& environment.getModuleId() != null) {
Trace.tracePoint("EXIT", "GeronimoV21Utils.getConfigId", getQualifiedConfigID(environment.getModuleId()));
return getQualifiedConfigID(environment.getModuleId());
}
Trace.tracePoint("EXIT", "GeronimoV21Utils.getConfigId", getId(module));
return getId(module);
}