if (JPA_LOGGER.isDebugEnabled())
JPA_LOGGER.debugf("created new TransactionScopedEntityManager for unit name=%s", unitName);
} else {
boolean useDeepInheritance = !ExtendedPersistenceInheritance.SHALLOW.equals(JPAService.getDefaultExtendedPersistenceInheritance());
// get deployment settings from top level du (jboss-all.xml is only parsed at the top level).
JPADeploymentSettings jpaDeploymentSettings =
DeploymentUtils.getTopDeploymentUnit(deploymentUnit).getAttachment(JpaAttachments.DEPLOYMENT_SETTINGS_KEY);
if (jpaDeploymentSettings != null) {
useDeepInheritance = ExtendedPersistenceInheritance.DEEP.equals(jpaDeploymentSettings.getExtendedPersistenceInheritanceType());
}
boolean createdNewExtendedPersistence = false;
ExtendedEntityManager entityManager1;
// handle PersistenceContextType.EXTENDED