@Override
  protected ResourceInstance createPrivilegeResource(String privilegeId) {
    return createResource(Resource.Type.AmbariPrivilege,
        Collections.singletonMap(Resource.Type.AmbariPrivilege, privilegeId));
  }
Service responsible for Ambari privilege resource requests.
ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariPrivilegeService.java