@RequiresSession
  public boolean isManaged(ClusterEntity entity) {
    return entityManagerProvider.get().contains(entity);
  }
Merge the specified list of cluster config entities into the current persistence context.
@param clusterConfigEntities the entity to merge (not {@code null}).
@param flush if {@code true} then {@link EntityManager#flush()} will be invoked
             immediately after the merge.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterDAO.java