params.setCatalogFile(properties.getCatalogFile());
CatalogManager catalogManager = CatalogManager.getStaticManager(); catalogManager.setCatalogFiles(properties.getCatalogFile()); EntityResolver entityResolver = new CatalogResolver(); URI sourceDirURI = properties.getBaseDir().toURI(); entityResolver = new PassThroughResolver(entityResolver); params.setEntityResolver(entityResolver);
   static SchemaCompiler.Parameters getCompilerParameters(final PluginProperties properties)      throws DependencyResolutionRequiredException, XmlBeansException   {      SchemaCompiler.Parameters params = new SchemaCompiler.Parameters();      params.setBaseDir(properties.getBaseDir());      params.setXsdFiles(properties.getXsdFiles());      params.setWsdlFiles(properties.getWsdlFiles());      params.setJavaFiles(properties.getJavaFiles());      params.setConfigFiles(properties.getConfigFiles());      params.setClasspath(properties.getClasspath());      params.setOutputJar(properties.getOutputJar());      params.setName(properties.getName());      params.setSrcDir(properties.getGeneratedSourceDirectory());      params.setClassesDir(properties.getGeneratedClassesDirectory());      params.setCompiler(properties.getCompiler());      params.setMemoryInitialSize(properties.getMemoryInitialSize());      params.setMemoryMaximumSize(properties.getMemoryMaximumSize());      params.setNojavac(properties.isNoJavac());      params.setQuiet(properties.isQuiet());      params.setVerbose(properties.isVerbose());      params.setDownload(properties.isDownload());      params.setNoUpa(properties.isNoUpa());      params.setNoPvr(properties.isNoPvr());      params.setDebug(properties.isDebug());      if (properties.hasCatalogFile()) {          params.setCatalogFile(properties.getCatalogFile());      }      params.setErrorListener(properties.getErrorListeners());      params.setRepackage(properties.getRepackage());      params.setExtensions(properties.getExtensions());      params.setMdefNamespaces(properties.getMdefNamespaces());      params.setJavaSource(properties.getJavaSource());      return params;   }