@RequiresSession
  public RemoteAmbariClusterEntity findByName(String clusterName) {
    TypedQuery<RemoteAmbariClusterEntity> query = entityManagerProvider.get().
            createNamedQuery("remoteAmbariClusterByName", RemoteAmbariClusterEntity.class);
    query.setParameter("clusterName", clusterName);
    return daoUtils.selectSingle(query);
  }
Find Cluster by name
@param clusterName
@return
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/RemoteAmbariClusterDAO.java