if(appmd!=null) // An ESB case, They deploy a *.war inside *.esb
{
Iterator it = appmd.getModules();
while (it.hasNext())
{
J2eeModuleMetaData module = (J2eeModuleMetaData)it.next();
if (module.getFileName().equals(dep.getSimpleName()))
contextRoot = module.getWebContext();
}
}
}
if (contextRoot == null)