code: protected Resource loadSchemaResources() {
          PathMatchingResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver();
          for (String location : schemas) {
              try {
                  Resource[] findings = resourcePatternResolver.getResources(location);
  
                  for (Resource finding : findings) {
                      if (finding.getFilename().endsWith(".xsd") || finding.getFilename().endsWith(".wsdl")) {
                          schemaResources.add(finding);
                      }
                  }
              } catch (IOException e) {
                  throw new CitrusRuntimeException("Failed to read schema resources for location: " + location, e);
              }
          }
  
          return schemaResources.get(0);
      }
docs: Loads all schema resource files from schema locations.