getParent();
String puRoot = persistenceUnitDescriptor.getPuRoot();
if(rootDD.isApplication()){
return puRoot;
} else {
ModuleDescriptor module = BundleDescriptor.class.cast(rootDD).
getModuleDescriptor();
if(module.isStandalone()) {
return puRoot;
} else {
// The module is embedded in an ear (an ejb jar or war)
final String moduleLocation = // Would point to the directory where module is expanded. For example myejb_jar
DeploymentUtils.getRelativeEmbeddedModulePath(
providerContainerContractInfo.getApplicationLocation(), module.getArchiveUri());
return moduleLocation + '/' + puRoot; // see we always '/'
}
}
}