@Transactional
  public void detach(PrivilegeEntity entity) {
    entityManagerProvider.get().detach(entity);
  }
Detach an instance from manager.

@param entity  entity to detach
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PrivilegeDAO.java