docs: private Definition getWsdlDefinition(Resource wsdl) {
          try {
              Definition definition;
              if (wsdl.getURI().toString().startsWith("jar:")) {
                  // Locate WSDL imports in Jar files
                  definition = WSDLFactory.newInstance().newWSDLReader().readWSDL(new JarWSDLLocator(wsdl));
              } else {
                  definition = WSDLFactory.newInstance().newWSDLReader().readWSDL(wsdl.getURI().getPath(), new InputSource(wsdl.getInputStream()));
              }
  
              return definition;
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to read wsdl file resource", e);
          } catch (WSDLException e) {
              throw new CitrusRuntimeException("Failed to wsdl schema instance", e);
          }
      }