// this does not work when there is a terminateSequnceResponse
// TODO do processing of terminateMessagesCorrectly., create a new
// message instead of sendign the one given by the serviceClient
// TODO important
AxisOperation outInAxisOp = new OutInAxisOperation(new QName("temp"));
AxisOperation referenceInOutOperation = msgContext.getAxisService()
.getOperation(
new QName(Sandesha2Constants.RM_IN_OUT_OPERATION_NAME));
if (referenceInOutOperation == null) {
String messge = "Cant find the recerence RM InOut operation";
throw new SandeshaException(messge);
}
outInAxisOp.setParent(msgContext.getAxisService());
// setting flows
// outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation.getRemainingPhasesInFlow());
outInAxisOp.setRemainingPhasesInFlow(referenceInOutOperation
.getRemainingPhasesInFlow());
OperationContext opcontext = OperationContextFactory
.createOperationContext(
WSDL20_2004Constants.MEP_CONSTANT_OUT_IN, outInAxisOp);