SocketListener socketListener = new SocketListener(new InetAddrPort(endpoint.getEndpointURI().getPort()));
httpServer.addListener(socketListener);
String path = endpoint.getEndpointURI().getPath();
if(path == null || "".equals(path)) {
path ="/";
<BUG>}
HttpContext context = httpServer.getContext(path);</BUG>
context.setRequestLog(null);
ServletHandler handler = new ServletHandler();
<BUG>if("jetty:rest".equals(endpoint.getEndpointURI().getSchemeMetaInfo())) {
handler.addServlet("MuleRESTReceiverServlet", path + "*", MuleRESTReceiverServlet.class.getName());</BUG>
} else {

SocketListener socketListener = new SocketListener(new InetAddrPort(endpoint.getEndpointURI().getPort()));
httpServer.addListener(socketListener);
String path = endpoint.getEndpointURI().getPath();
if(path == null || "".equals(path)) {
path ="/";
}
if(!path.endsWith("/")) path += "/";
HttpContext context = httpServer.getContext(path);
context.setRequestLog(null);
ServletHandler handler = new ServletHandler();
if("rest".equals(endpoint.getEndpointURI().getScheme())) {
handler.addServlet("MuleRESTReceiverServlet", path + "*", MuleRESTReceiverServlet.class.getName());
} else {
