public Set<SubResourceDefinition> getSubResourceDefinitions(
      String viewName, String version) {


    viewName = ViewEntity.getViewName(viewName, version);

    return subResourceDefinitionsMap.get(viewName);
  }
Get the sub-resource definitions for the given view name.

@param viewName the instance name
@param version  the version
@return the set of sub-resource definitions
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java