protected ResourceInstance createPrivilegeResource(String groupName, String privilegeId) {
    final Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Group, groupName);
    mapIds.put(Resource.Type.GroupPrivilege, privilegeId);
    return createResource(Resource.Type.GroupPrivilege, mapIds);
  }
Handles: GET /groups/{groupName}/privileges{privilegeID}
Get a specific privilege for a group.

@param headers       http headers
@param ui            uri info
@param groupName     group name
@param privilegeId   privilege id
@return privilege instance representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/groups/GroupPrivilegeService.java