private static @NotNull Document loadContent(String docName, String resourcePath) {
    try {
      byte[] data = ResourceUtil.getResourceAsBytes(resourcePath, EndUserAgreement.class.getClassLoader());
      if (data != null) {
        return new Document(docName, new String(data, StandardCharsets.UTF_8));
      }
    }
    catch (IOException e) {
      LOG.info(docName + ": " + e.getMessage());
      LOG.debug(e);
    }
    return new Document(docName, "");
  }
private static @NotNull Document loadContent(String docName, String resourcePath)