private ResourceInstance createRequestSchedule(String clusterName,
                                                 String requestScheduleId) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.RequestSchedule, requestScheduleId);

    return createResource(Resource.Type.RequestSchedule, mapIds);
  }
Create a request schedule resource instance
@param clusterName
@param requestScheduleId
@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestScheduleService.java