code: protected Page newPage(final HttpServletRequest req, final HttpServletResponse resp,
        final String template) {
      final Page page = new Page(req, resp, getApplication().getVelocityEngine(), template);
      page.add("version", jarVersion);
      page.add("azkaban_name", this.name);
      page.add("azkaban_label", this.label);
      page.add("azkaban_color", this.color);
      page.add("note_type", NoteServlet.type);
      page.add("note_message", NoteServlet.message);
      page.add("note_url", NoteServlet.url);
      page.add("timezone", TimeZone.getDefault().getID());
      page.add("currentTime", (new DateTime()).getMillis());
      page.add("size", getDisplayExecutionPageSize());
  
      // @TODO, allow more than one type of viewer. For time sake, I only install
      // the first one
      if (this.viewerPlugins != null && !this.viewerPlugins.isEmpty()) {
        page.add("viewers", this.viewerPlugins);
        final ViewerPlugin plugin = this.viewerPlugins.get(0);
        page.add("viewerName", plugin.getPluginName());
        page.add("viewerPath", plugin.getPluginPath());
      }
  
      if (this.triggerPlugins != null && !this.triggerPlugins.isEmpty()) {
        page.add("triggers", this.triggerPlugins);
      }
  
      return page;
    }
docs: Creates a new velocity page to use.