if (LOGGER.isDebugEnabled()) {
LOGGER.debug("JPA Persist - entity: " + entity);
}
if (entity instanceof PersistenceCapable) {
PersistenceCapable pc = (PersistenceCapable) entity;
if (pc.jdoIsDetached()) {
/**
* Sec - 3.2.2
* If X is a detached object, the EntityExistsException may be thrown when the persist
* operation is invoked, or the EntityExistsException or another PersistenceException may be thrown
* at flush or commit time