ServerContextInformation serverContextInformation) {
Object context = serverContextInformation.getServerContext();
if (context instanceof ConfigurationContext) {
AxisConfiguration axisCfg = ((ConfigurationContext) context).getAxisConfiguration();
DeploymentEngine deploymentEngine = (DeploymentEngine) axisCfg.getConfigurator();
// File carbonHome = new File(System.getProperty(ServerConstants.CARBON_HOME));
// subjected to change
String carbonRepoPath = axisCfg.getRepository().getPath();
String mediatorsPath = carbonRepoPath + File.separator + "mediators";
String extensionsPath = carbonRepoPath + File.separator + "extensions";
ExtensionDeployer deployer = new ExtensionDeployer();
deploymentEngine.addDeployer(deployer, mediatorsPath, "xar");
deploymentEngine.addDeployer(deployer, extensionsPath, "xar");
deploymentEngine.addDeployer(deployer, mediatorsPath, "jar");
deploymentEngine.addDeployer(deployer, extensionsPath, "jar");
this.currentConfigurationName = ((ConfigurationContext) context).
getAxisConfiguration().getParameterValue(
ServiceBusConstants.SYNAPSE_CURRENT_CONFIGURATION).toString();