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));