* @param persistenceUnitDescriptor
* @return the absolute path of the root of this persistence unit
*/
private String getAbsolutePuRoot(String applicationLocation,
PersistenceUnitDescriptor persistenceUnitDescriptor) {
RootDeploymentDescriptor rootDD = persistenceUnitDescriptor.getParent(). getParent();
String puRoot = persistenceUnitDescriptor.getPuRoot();
if(rootDD.isApplication()){
return puRoot;
} else {
ModuleDescriptor module = BundleDescriptor.class.cast(rootDD).
getModuleDescriptor();
if(module.isStandalone()) {