protected void populateSubResourceDefaults(
      SubResourceDefinition subResource, Set<String> properties) {

    Schema schema = getSchema(subResource.getType());
    Set<Resource.Type> foreignKeys = subResource.getAdditionalForeignKeys();
    for (Resource.Type fk : foreignKeys) {
      properties.add(schema.getKeyPropertyId(fk));
    }
    addPrimaryKey(subResource.getType(), properties);
    addKeys(subResource.getType(), properties);
  }
Populate sub-resource properties.

@param subResource  definition of sub-resource
@param properties   property set to update
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/BaseRenderer.java