private void initConfigurationResources() {
    String clusterName = getClusterDefinition().getClusterName();

    for (String type : allConfigs.keySet()) {
      Resource resource = new ResourceImpl(Resource.Type.Configuration);
      resource.setProperty(CONFIGURATION_CLUSTER_NAME_PROPERTY_ID, clusterName);
      resource.setProperty(CONFIGURATION_CONFIG_TYPE_PROPERTY_ID, type);
      resource.setProperty(CONFIGURATION_CONFIG_TAG_PROPERTY_ID, "version1");

      Map<String, String> properties = allConfigs.get(type);
      for (Map.Entry<String, String> entry : properties.entrySet()) {
        String id = PropertyHelper.getPropertyId("properties", entry.getKey());
        resource.setProperty(id, entry.getValue());
      }

      addResource(resource);
    }
  }
Configuration provider for a MSI defined cluster.
contrib/ambari-scom/ambari-scom-server/src/main/java/org/apache/ambari/msi/ConfigurationProvider.java