*/
private HashMap<String, XmlSchema> readInSchema(String localOutputDirectory,
JAXWSCatalogManager catalogManager) throws Exception {
try {
XmlSchemaCollection schemaCollection = new XmlSchemaCollection();
if (catalogManager != null)
schemaCollection.setSchemaResolver(new CatalogURIResolver(catalogManager));
schemaCollection.setBaseUri(new File(localOutputDirectory).getAbsolutePath());
HashMap<String, XmlSchema> docMap = new HashMap<String, XmlSchema>();
List<File> schemaFiles = getSchemaFiles(localOutputDirectory);
for (File schemaFile : schemaFiles) {
XmlSchema doc = schemaCollection.read(new InputSource(schemaFile.toURL().toString()), null);
if (log.isDebugEnabled()) {
log.debug("Read in schema file: " + schemaFile.getName());
}
docMap.put(schemaFile.getName(), doc);
}