@Override
public boolean isEntitiesDetached() {
return false;
}
@Override
<BUG>public EntityManager getEntityManager() {
try {
InitialContext initialContext = new InitialContext();
EntityManager lookup = (EntityManager) initialContext
.lookup(getJndiAddresses().getEntityManagerName());
return lookup;
} catch (NamingException ex) {
throw new RuntimeException(ex);
}</BUG>
}

@Override
public boolean isEntitiesDetached() {
return false;
}
@Override
public EntityManager getEntityManager() {
return Util.getEntityManager(getJndiAddresses());
}
