* @return the Synapse configuration model
*/
public static SynapseConfiguration getConfiguration(String configFile) {
// build the Synapse configuration parsing the XML config file
XMLConfigurationBuilder xmlBuilder = null;
try {
xmlBuilder = new XMLConfigurationBuilder();
SynapseConfiguration synCfg = xmlBuilder.getConfiguration(new FileInputStream(configFile));
log.info("Loaded Synapse configuration from : " + configFile);
return synCfg;
} catch (FileNotFoundException fnf) {
handleException("Cannot load Synapse configuration from : " + configFile, fnf);