@RequiresSession
  public ViewEntity findByName(String viewName) {
    return entityManagerProvider.get().find(ViewEntity.class, viewName);
  }
Find a view with a given name.

@param viewName name of view to find

@return  a matching view or null
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ViewDAO.java