private static Map<Resource.Type, String> _getKeyPropertyIds(Resource.Type type) {

    Map<Resource.Type, String> keyPropertyIds = new HashMap<>();

    keyPropertyIds.put(Resource.Type.View, VIEW_NAME_PROPERTY_ID);
    keyPropertyIds.put(Resource.Type.ViewVersion, VIEW_VERSION_PROPERTY_ID);
    keyPropertyIds.put(Resource.Type.ViewInstance, INSTANCE_NAME_PROPERTY_ID);
    keyPropertyIds.put(type, RESOURCE_NAME_PROPERTY_ID);

    return keyPropertyIds;
  }
Register an external sub-resource name.

@param resourceName  the resource name
ambari-server/src/main/java/org/apache/ambari/server/view/ViewExternalSubResourceProvider.java