docs: public static byte[] getResourceAsBytes(String name) throws IOException
    {
      InputStream is = getResourceAsStream(name);
      ByteArrayOutputStream os = new ByteArrayOutputStream();
  
      try {
        byte[] buffer = new byte[4096];
        int length = 0;
        while((length = is.read(buffer)) != -1) {
          os.write(buffer, 0, length);
        }
      }
      finally {
        Files.close(is);
        Files.close(os);
      }
      return os.toByteArray();
    }