{
String endpointKey = getCounterEndpointKey(receiver.getEndpointURI());
for (Iterator iterator = ((ServiceCompositeMessageSource) axisComponent.getMessageSource()).getEndpoints().iterator(); iterator.hasNext();)
{
ImmutableEndpoint endpoint = (ImmutableEndpoint) iterator.next();
if (endpointKey.startsWith(endpoint.getEndpointURI().getAddress()))
{
logger.info("Unregistering Axis endpoint: " + endpointKey + " for service: "
+ ((AxisMessageReceiver) receiver).getSoapService().getName());
}
try
{
endpoint.getConnector()
.unregisterListener(receiver.getEndpoint(), axisComponent);
}
catch (Exception e)
{
logger.error("Failed to unregister Axis endpoint: " + endpointKey + " for service: "