// if (RegistryBasedProcessStoreImpl.isUpdatingBPELPackage) {
// axisService.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
// axisService.getAxisServiceGroup().addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
// }
// now, stop the service
axisConfig.stopService(axisServiceName);
// calling removeServiceGroup() is workaround to AXIS2-4314.
// It happens that Axis2 creates one group per service you add with AxisConfiguration.addService().
// See this.createService()
// Once this issue is fixed (hopully in Axis2-1.5), we can use removeService() again.
axisConfig.removeServiceGroup(axisServiceName);