throws ServletException, IOException {
if (getTarget() != null) {
// Convert the Servlet call to a Restlet call
ServletCall servletCall = new ServletCall(getLogger(), request
.getLocalAddr(), request.getLocalPort(), request, response);
HttpRequest httpRequest = toRequest(servletCall);
HttpResponse httpResponse = new HttpResponse(servletCall,
httpRequest);
// Adjust the relative reference
httpRequest.getResourceRef().setBaseRef(getBaseRef(request));
// Adjust the root reference
httpRequest.setRootRef(getRootRef(request));
// Handle the request and commit the response
getTarget().handle(httpRequest, httpResponse);
commit(httpResponse);
} else {