if (ret != null) {
JaxwsServerHandler h = ex.get(JaxwsServerHandler.class);
if (h != null) {
return ret;
}
ContinuationProvider cp = ex.getInMessage().get(ContinuationProvider.class);
// Check for decoupled endpoints: if partial response already was sent, ignore continuation
boolean decoupledEndpoints = MessageUtils
.getContextualBoolean(ex.getInMessage(), PARTIAL_RESPONSE_SENT_PROPERTY, false);
if ((cp == null) && uam.always() || decoupledEndpoints) {
JaxwsServerHandler handler = new JaxwsServerHandler(null);
ex.put(JaxwsServerHandler.class, handler);
params.add(handler);
return ret;
} else if (cp != null && cp.getContinuation() != null) {
final Continuation c = cp.getContinuation();
c.suspend(0);
JaxwsServerHandler handler = new JaxwsServerHandler(c);
ex.put(JaxwsServerHandler.class, handler);
params.add(handler);
return ret;