docs: protected String trimResourceName(String resourceName) {
  
          if (resourceName.startsWith("/")) {
              resourceName = resourceName.substring(1);
          }
          if (resourceName.endsWith("/")) {
              resourceName = resourceName.substring(0, resourceName.length() - 1);
          }
          return resourceName;
      }