ResourceInstance createConfigurationResource(String clusterName) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.Configuration, null);

    return createResource(Resource.Type.Configuration, mapIds);
  }
Create a service resource instance.

@param clusterName cluster name

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