docs: private ScriptValidationContext getScriptValidationContext(Element scriptElement) {
          String type = scriptElement.getAttribute("type");
          
          ScriptValidationContext validationContext = new ScriptValidationContext(type);
          String filePath = scriptElement.getAttribute("file");
          if (StringUtils.hasText(filePath)) {
              validationContext.setValidationScriptResourcePath(filePath);
          } else {
              validationContext.setValidationScript(DomUtils.getTextValue(scriptElement));
          }
          
          return validationContext;
      }