Move jetty-specific code into the jetty adapter