ResourceInstance createRequestResource(String clusterName, String requestId) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    
    if (null != clusterName)
      mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.Request, requestId);

    return createResource(Resource.Type.Request, mapIds);
  }
Create a request resource instance.

@param clusterName  cluster name
@param requestId    request id

@return a request resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestService.java