private MessageProcessor buildCallbackProcessor(String authCodeRegex,
FetchAccessTokenMessageProcessor fetchAccessTokenMessageProcessor,
MessageProcessor listener) throws MuleException
{
return new DefaultMessageProcessorChainBuilder().chain(
new ExtractAuthorizationCodeMessageProcessor(Pattern.compile(authCodeRegex)),
fetchAccessTokenMessageProcessor, new CallbackContinuationMessageProcessor(listener)).build();
}