synchronized (EntityManagerFactoryProvider.emSetupImpls){
emSetupImpl = EntityManagerFactoryProvider.getEntityManagerSetupImpl(puName);
if (emSetupImpl == null || emSetupImpl.isUndeployed()){
if (!initialized) {
initializer.initialize(nonNullProperties, this);
initialized = true;
}
emSetupImpl = EntityManagerFactoryProvider.getEntityManagerSetupImpl(puName);
}