protected Message invokeEndpointAdapter ( MailMessage mail ) { if ( splitMultipart ) { return split ( mail . getPayload ( MailRequest . class ) . getBody ( ) , mail . getHeaders ( ) ) ; } else { return getEndpointAdapter ( ) . handleMessage ( mail ) ; } }
Invokes the endpoint adapter with constructed mail message and headers .