protected Map<String, PropertyInfo> getPropertyInfoMap(String componentName, String propertyId) {
    Map<String, PropertyInfo> propertyInfoMap = new HashMap<>();

    updatePropertyInfoMap(componentName, propertyId, propertyInfoMap);

    return propertyInfoMap;
  }
Get a map of metric / property info based on the given component name and property id.
Note that the property id may map to multiple metrics if the property id is a category.

@param componentName  the component name
@param propertyId     the property id; may be a category

@return a map of metrics
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractPropertyProvider.java