ResourceInstance createResource(String type) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.ClusterKerberosDescriptor, type);
    return createResource(Resource.Type.ClusterKerberosDescriptor, mapIds);
  }
Create a composite Kerberos Descriptor resource instance.

@param type the Kerberos descriptor type (COMPOSITE, STACK, USER)
@return a service resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterKerberosDescriptorService.java