private ResourceInstance createResourceInstance(Long requestId) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, m_clusterName);

    if (null != requestId) {
      mapIds.put(Resource.Type.UpgradeSummary, requestId.toString());
    }

    return createResource(Resource.Type.UpgradeSummary, mapIds);
  }
@param requestId the upgrade's request Id
@return the resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/UpgradeSummaryService.java