requestContext.put(
MessageContext.HTTP_REQUEST_METHOD,
"POST"
);
if (decoupled) {
HTTPConduit cond = (HTTPConduit)((DispatchImpl)dispatcher).getClient().getConduit();
cond.getClient().setDecoupledEndpoint("http://localhost:9001/decoupled");
}
return dispatcher;
}