MessageContext messageContext = MessageContext.getCurrentMessageContext();
AxisServiceGroup axisServiceGroup = new AxisServiceGroup();
axisServiceGroup.setParent(
messageContext.getConfigurationContext().getAxisConfiguration());
service.setParent(axisServiceGroup);
service.printWSDL2(outStream);
} else if (WSDL2Constants.WSDL_NAMESPACE
.equals(documentElementNS.getNamespaceURI())) {
documentElement.serialize(outStream);
} else {
throw new CarbonException("Invalid WSDL");