docs: public static String loadResourceContent(String resourcePath, DeploymentEntity deployment) {
      String[] pathSplit = resourcePath.split("://", 2);
  
      String resourceType;
      if (pathSplit.length == 1) {
        resourceType = "classpath";
      } else {
        resourceType = pathSplit[0];
      }
  
      String resourceLocation = pathSplit[pathSplit.length - 1];
  
      byte[] resourceBytes = null;
  
      if (resourceType.equals("classpath")) {
        InputStream resourceAsStream = null;
        try {
          resourceAsStream = ReflectUtil.getResourceAsStream(resourceLocation);
          if (resourceAsStream != null) {
            resourceBytes = IoUtil.readInputStream(resourceAsStream, resourcePath);
          }
        } finally {
          IoUtil.closeSilently(resourceAsStream);
        }
      }
      else if (resourceType.equals("deployment")) {
        ResourceEntity resourceEntity = deployment.getResource(resourceLocation);
        if (resourceEntity != null) {
          resourceBytes = resourceEntity.getBytes();
        }
      }
  
      if (resourceBytes != null) {
        return new String(resourceBytes, Charset.forName("UTF-8"));
      }
      else {
        throw LOG.cannotFindResource(resourcePath);
      }
    }