code: public String getFileContents(String path) throws Exception {
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          Resources.copy(Pages.class.getResource(path), outputStream);
          return new String(outputStream.toByteArray(), "UTF-8");
      }
docs: Returns the contents of the a file specified by {@code path}.
  @param path path to a file
  @return the contents of the specified file
  @throws Exception if anything goes wrong