topDeploymentUnit = DeploymentUtils.getTopDeploymentUnit(topDeploymentUnit);
// create persistence unit counter if not done already
synchronized (topDeploymentUnit) { // ensure that only one deployment thread sets this at a time
PersistenceUnitsInApplication persistenceUnitsInApplication = getPersistenceUnitsInApplication(topDeploymentUnit);
persistenceUnitsInApplication.increment(persistenceUnitCount);
}
JPA_LOGGER.tracef("incrementing PU count for %s by %d", topDeploymentUnit.getName(), persistenceUnitCount);
}
private void addApplicationDependenciesOnProvider(DeploymentUnit topDeploymentUnit, PersistenceUnitMetadataHolder holder) {