public static String getContextPath(String viewName, String version, String viewInstanceName) {
    return AmbariAuthorizationFilter.VIEWS_CONTEXT_PATH_PREFIX + viewName + "/" + version + "/" + viewInstanceName;
  }
Get the context path for a view instance with the given names.

@param viewName         the view name
@param viewInstanceName the instance name
@return the context path
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java