mainSequence.setFileName(SynapseConstants.MAIN_SEQUENCE_KEY + ".xml");
faultSequence.setFileName(SynapseConstants.FAULT_SEQUENCE_KEY + ".xml");
Registry registry = new WSO2Registry();
initialSynCfg.setRegistry(registry);
MultiXMLConfigurationSerializer serializer
= new MultiXMLConfigurationSerializer(synapseConfigDir.getAbsolutePath());
try {
serializer.serializeSequence(mainSequence, initialSynCfg, null);
serializer.serializeSequence(faultSequence, initialSynCfg, null);
serializer.serializeSynapseRegistry(registry, initialSynCfg, null);
} catch (Exception e) {
handleException("Couldn't serialise the initial synapse configuration " +
"for the domain : " + tenantDomain, e);
}
}