} else {
ServiceContext serviceContext = new ServiceContext (referenceMessage.getAxisService(),newMessageContext.getServiceGroupContext());
newMessageContext.setServiceContext(serviceContext);
}
} else {
AxisService axisService = new AxisService("AnonymousRMService");
AxisServiceGroup serviceGroup = newMessageContext.getAxisServiceGroup();
axisService.setParent(serviceGroup);
serviceGroup.addChild(axisService);
ServiceContext serviceContext = new ServiceContext(axisService, newMessageContext.getServiceGroupContext());
newMessageContext.setAxisService(axisService);
newMessageContext.setServiceContext(serviceContext);
}
newMessageContext.setAxisOperation(operation);
// setting parent child relationships
AxisService service = newMessageContext.getAxisService();
if (service != null && operation != null) {
// Adding this operation to the service is tricky.
// service.addChild(operation);