Implemented Endpoint factory to allow package consumers to construct dynamically configured endpoints