docs: static WsResource resolveInclude(String includePath, String basePath, WsLocationAdmin wsLocationAdmin) {
          if (includePath == null) {
              return null;
          }
  
          includePath = includePath.trim();
  
          if (includePath.length() == 0) {
              return null;
          }
  
          if (basePath == null) {
              // no basePath - resolve includePath as is
              String normalIncludePath = wsLocationAdmin.resolveString(includePath);
              return wsLocationAdmin.resolveResource(normalIncludePath);
          } else {
              String normalIncludePath = wsLocationAdmin.resolveString(includePath);
              if (PathUtils.pathIsAbsolute(normalIncludePath)) {
                  // includePath is absolute - resolve includePath as is
                  return wsLocationAdmin.resolveResource(normalIncludePath);
              } else {
                  // includePath is relative - resolve against basePath
                  String normalBasePath = wsLocationAdmin.resolveString(basePath);
                  String normalParentPath = PathUtils.getParent(normalBasePath);
                  if (normalParentPath == null) {
                      return wsLocationAdmin.resolveResource(normalIncludePath);
                  } else if (normalParentPath.endsWith("/")) {
                      return wsLocationAdmin.resolveResource(normalParentPath + normalIncludePath);
                  } else {
                      return wsLocationAdmin.resolveResource(normalParentPath + "/" + normalIncludePath);
                  }
              }
          }
      }