Moved handling of ResourceHandler responses to the RestServlet.