Added template method for NoEndpointFoundException

Introduced handleNoEndpointFoundException to allow for customization in
subclasses.

Issue: SWS-850