Add an additional method to EndpointHandlerMapping which allows endpoints of a specific type to be returned. See gh-7108