assert jaxbcontext != null;
Message message;
if (mode == Service.Mode.MESSAGE) {
message = isContextSupported ?
new JAXBDispatchMessage(BindingContextFactory.create(jaxbcontext), msg, soapVersion) :
new JAXBDispatchMessage(jaxbcontext, msg, soapVersion);
} else {
if (msg == null) {
message = Messages.createEmpty(soapVersion);
} else {
message = isContextSupported ?