if(synCfg.getProperty(SynapseConstants.SYNAPSE_SCHEMA_RESOLVER) !=null){
setUserDefinedSchemaResourceResolver(synCtx);
}
else{
factory.setResourceResolver(
new SchemaResourceResolver(synCtx.getConfiguration(), resourceMap));
}
cachedSchema = factory.newSchema(sources);
} catch (SAXException e) {
handleException("Error creating a new schema objects for " +
"schemas : " + schemaKeys.toString(), e, synCtx);