public ViewInstanceEntity getViewInstanceEntity(String viewName, String instanceName) {
    return instanceDAO.findByName(viewName, instanceName);
  }
Get a view instance entity for the given view name and instance name.

@param viewName     the view name
@param instanceName the instance name
@return a view instance entity for the given view name and instance name.
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java