docs: public static String getTemplateAsString(String fileName) throws IOException {
          // in .jar file
          String fNameJar = getFileNameInPath(fileName);
          InputStream inStream = DomUtils.class.getResourceAsStream("/"
                  + fNameJar);
          if (inStream == null) {
              // try to find file normally
              File f = new File(fileName);
              if (f.exists()) {
                  inStream = new FileInputStream(f);
              } else {
                  throw new IOException("Cannot find " + fileName + " or "
                          + fNameJar);
              }
          }
  
          BufferedReader bufferedReader = new BufferedReader(
                  new InputStreamReader(inStream));
          String line;
          StringBuilder stringBuilder = new StringBuilder();
  
          while ((line = bufferedReader.readLine()) != null) {
              stringBuilder.append(line).append("\n");
          }
  
          bufferedReader.close();
          return stringBuilder.toString();
      }