serviceEndpointbuilder.addMessageProcessor(new SecurityFilterMessageProcessor(securityFilter));
}
// TODO Do we really need to modify the existing receiver endpoint? What happens if we don't security,
// filters and transformers will get invoked twice?
AbstractEndpointBuilder receiverEndpointBuilder = new EndpointURIEndpointBuilder(receiver.getEndpoint());
// Remove the Axis filter now
List<MessageProcessor> procs = new ArrayList<MessageProcessor>(receiverEndpointBuilder.getMessageProcessors());
CollectionUtils.removeType(procs, MessageFilter.class);
CollectionUtils.removeType(procs, SecurityFilterMessageProcessor.class);
receiverEndpointBuilder.setMessageProcessors(procs);
InboundEndpoint serviceEndpoint = muleContext.getEndpointFactory()
.getInboundEndpoint(serviceEndpointbuilder);
InboundEndpoint receiverEndpoint = muleContext.getEndpointFactory()