public ViewEntity getDefinition(String viewName, String version) {
    return getDefinition(ViewEntity.getViewName(viewName, version));
  }
Get a view definition for the given name.

@param viewName the view name
@param version  the version
@return the view definition for the given name
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java