@Override
  public Long getResourceEntityId(Predicate predicate) {
    final String clusterName = getQueryParameterValue(CLUSTER_NAME, predicate).toString();
    final ClusterEntity clusterEntity = clusterDAO.findByName(clusterName);
    return clusterEntity.getResource().getId();
  }
Static initialization.

@param dao  the cluster data access object
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterPrivilegeResourceProvider.java