@Transactional
  public KerberosPrincipalEntity merge(KerberosPrincipalEntity kerberosPrincipalEntity) {
    return entityManagerProvider.get().merge(kerberosPrincipalEntity);
  }
Merge the state of the given entity into the current persistence context.

@param kerberosPrincipalEntity entity to merge
@return the merged entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KerberosPrincipalDAO.java