code: private static String getClasspathResourceAsString(String resourcePath) {
          try (InputStream is = DefaultHelperClassSourceProvider.class.getClassLoader().getResourceAsStream(resourcePath);
               java.util.Scanner s = new java.util.Scanner(is)) {
              return s.useDelimiter("\\A").hasNext() ? s.next() : "";
          } catch (IOException e) {
              throw new RuntimeException(e);
              //should never happen and if it does then all RuntimeExceptions should be caught in LambdaFactory
          }
      }
docs: uses the "stupid scanner trick" https://weblogs.java.net/blog/2004/10/24/stupid-scanner-tricks