// Create MessageContext for current invocation.
if (injectionDesc != null && injectionDesc.hasResourceAnnotation()) {
javax.xml.ws.handler.MessageContext soapMessageContext =
createSOAPMessageContext(mc);
// Create WebServiceContext
WebServiceContextImpl wsContext = new WebServiceContextImpl();
//Add MessageContext for this request.
wsContext.setSoapMessageContext(soapMessageContext);
// Inject WebServiceContext
injectWebServiceContext(mc, wsContext, serviceimpl);
serviceContext.setProperty(WEBSERVICE_MESSAGE_CONTEXT, wsContext);
}