Removed unnecesary response buffering.
Search for endpoint in both request and servlet scope.
Expose XRServlet::getEndpoint() to subclasses.