ResourceInstance createResource(String categoryName) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.RootService, serviceName);
    mapIds.put(Resource.Type.RootServiceComponent, componentName);
    mapIds.put(Resource.Type.RootServiceComponentConfiguration, categoryName);

    return createResource(Resource.Type.RootServiceComponentConfiguration, mapIds);
  }
Creates a root service component configuration resource.

@param body    the payload in json format
@param headers http headers
@param uri     request uri information
@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/RootServiceComponentConfigurationService.java