protected void addKeys(Resource.Type resourceType, Set<String> properties) {
    Schema schema = getSchema(resourceType);

    for (Resource.Type type : Resource.Type.values()) {
      String propertyId = schema.getKeyPropertyId(type);
      if (propertyId != null) {
        properties.add(propertyId);
      }
    }
  }
Add primary and all foreign keys for the specified resource type to the provided set.

@param resourceType  resource type
@param properties    set of properties which keys will be added to
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/BaseRenderer.java