// ProtocolStack.printProtocolSpecAsXML() is very hacky and only works on an uninitialized stack
List<Protocol> protocols = channel.getProtocolStack().getProtocols();
Collections.reverse(protocols);
ProtocolStack stack = new ProtocolStack();
stack.addProtocols(protocols);
context.getResult().set(stack.printProtocolSpecAsXML());
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
}
} finally {
controller.setMode(mode);
}