private void initClusterResources() {
    Resource cluster = new ResourceImpl(Resource.Type.Cluster);
    ClusterDefinition clusterDefinition = getClusterDefinition();
    cluster.setProperty(CLUSTER_NAME_PROPERTY_ID, clusterDefinition.getClusterName());
    cluster.setProperty(CLUSTER_VERSION_PROPERTY_ID, clusterDefinition.getVersionId());

    addResource(cluster);
  }
Create the resources based on the cluster definition.
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/ClusterProvider.java