if (emf == null) {
synchronized (this) {
if (emf == null) {
ProxyingWrapper wrapper = info.getWrapper();
EntityManagerFactory delegate = wrapper.lazy(info.getUnitName());
EntityManagerProvider provider = new CurrentEntityManagerProvider(delegate, info.getEmInjector());
emf = wrapper.wrap(delegate, provider);
}
}
}
return emf;