@Override
  protected ResourceInstance createPrivilegeResource(String privilegeId) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.ClusterPrivilege, privilegeId);

    return createResource(Resource.Type.ClusterPrivilege, mapIds);
  }
Construct a ClusterPrivilegeService.

@param clusterName  the cluster name
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterPrivilegeService.java