code: public static Map<String, SimpleNamespaceResolver> getFileNameToResolverMap(final File outputDirectory)
              throws MojoExecutionException {
  
          final Map<String, SimpleNamespaceResolver> toReturn = new TreeMap<String, SimpleNamespaceResolver>();
  
          // Each generated schema file should be written to the output directory.
          // Each generated schema file should have a unique targetNamespace.
          File[] generatedSchemaFiles = outputDirectory.listFiles(new FileFilter() {
              public boolean accept(File pathname) {
                  return pathname.getName().startsWith("schema") && pathname.getName().endsWith(".xsd");
              }
          });
  
          for (File current : generatedSchemaFiles) {
              toReturn.put(current.getName(), new SimpleNamespaceResolver(current));
          }
  
          return toReturn;
      }
docs: Acquires a map relating generated schema filename to its SimpleNamespaceResolver.
  
  @param outputDirectory The output directory of the generated schema files.
  @return a map relating generated schema filename to an initialized SimpleNamespaceResolver.
  @throws MojoExecutionException if two generated schema files used the same namespace URI.