}
private void extractServiceGroupContextId(MessageContext msgContext) throws AxisFault {
SOAPHeader soapHeader = msgContext.getEnvelope().getHeader();
if (soapHeader != null) {
OMElement serviceGroupId = soapHeader.getFirstChildWithName(new QName(Constants.AXIS2_NAMESPACE_URI,
Constants.SERVICE_GROUP_ID, Constants.AXIS2_NAMESPACE_PREFIX));
if (serviceGroupId != null) {
String groupId = serviceGroupId.getText();
ServiceGroupContext serviceGroupContext = msgContext.getConfigurationContext().
getServiceGroupContext(groupId, msgContext);
if (serviceGroupContext == null) {
// handleNoServiceGroupContextIDCase(msgContext);
throw new AxisFault(Messages.getMessage(
"invalidservicegrouoid", groupId));
}
msgContext.setServiceGroupContextId(serviceGroupId.getText());
}
}
}