IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
ListenerConfiguration respConfig = responder.getListenerConfig();
String contextUserid = respConfig.getUsername();
String contextPassword = respConfig.getPassword();
WebContext.setSCWebCredentials(new WebCredentials(contextUserid, contextPassword));
HttpRequest httpRequest = (HttpRequest) event.getMessage();
HttpResponse httpResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
IWebRequest webRequest = new NettyWebRequest(httpRequest, localAddress, remoteAddress);
IWebResponse webResponse = new NettyWebResponse(httpResponse);