}
EndpointURI endpointUri = endpoint.getEndpointURI();
if (endpointUri == null)
{
throw new ConnectorException(CoreMessages.endpointIsNullForListener(), this);
}
logger.info("Registering listener: " + flowConstruct.getName() + " on endpointUri: "
+ endpointUri.toString());
if (getReceiver(flowConstruct, endpoint) != null)
{
throw new ConnectorException(CoreMessages.listenerAlreadyRegistered(endpointUri), this);
}
MessageReceiver receiver = createReceiver(flowConstruct, endpoint);
receiver.setListener(messageProcessorChain);