{
public MessageDispatcher create(OutboundEndpoint endpoint) throws MuleException
{
AjaxMessageDispatcher dispatcher = new AjaxMessageDispatcher(endpoint);
if(endpoint.getConnector() instanceof AjaxConnector)
<BUG>{
AjaxConnector.BayeuxHolder holder = ((AjaxConnector)endpoint.getConnector()).registerBayeuxEndpoint(endpoint);
dispatcher.setBayeux(holder.getBayeux());</BUG>
}
else

{
public MessageDispatcher create(OutboundEndpoint endpoint) throws MuleException
{
AjaxMessageDispatcher dispatcher = new AjaxMessageDispatcher(endpoint);
if(endpoint.getConnector() instanceof AjaxConnector)
{
dispatcher.setBayeux(((AjaxConnector)endpoint.getConnector()).getBayeux());
}
else
