code: private String processIndexLine(String line) throws IOException {
          if (line.trim().equals(MDW_ADMIN_CSS)) {
              // insert custom user stylesheets
              String indent = line.substring(0, line.indexOf(MDW_ADMIN_CSS));
              StringBuffer insert = new StringBuffer(line);
              for (File cssFile : WebAppContext.listOverrideFiles("css")) {
                  insert.append("\n").append(indent);
                  insert.append("<link rel=\"stylesheet\" href=\"css/");
                  insert.append(cssFile.getName());
                  insert.append("\">");
              }
              return insert.toString();
          }
          else if (line.trim().equals(MDW_ADMIN_JS)) {
              // insert custom user scripts
              String indent = line.substring(0, line.indexOf(MDW_ADMIN_JS));
              StringBuffer insert = new StringBuffer(line);
              for (File jsFile : WebAppContext.listOverrideFiles("js")) {
                  insert.append("\n").append(indent);
                  insert.append("<script src=\"js/");
                  insert.append(jsFile.getName());
                  insert.append("\"></script>");
              }
              return insert.toString();
          }
          else {
              return line;
          }
      }
docs: Inserts custom CSS and JS files.
  TODO: redundantly re-adds override files (not harmful but ugly)