This screams AOP to me. I assume you've looked through ActionProcessingPipeline.java already - there's nothing really built in there that will do this. You could accomplish it through AOP and replacing the ActionProcessingPipeline.process method.
thanks for your answer.
I had a short look at ActionProcessingPipeline.java and even at ActionProcessorMethodInfo.java but i could not find the part, where the message is serialized. Where is this part of the code? Is there any special reason why serializing the message is done before invoking processSuccess or processException Methods?