assert context != null;
assert context instanceof WebChainContext;
assert ((WebChainContext)context).getServletRequest() instanceof HttpServletRequest;
assert ((WebChainContext)context).getServletResponse() instanceof HttpServletResponse;
WebChainContext webChainContext = (WebChainContext)context;
HttpServletRequest request = (HttpServletRequest)webChainContext.getServletRequest();
HttpServletResponse response = (HttpServletResponse)webChainContext.getServletResponse();
// Create the command by striping off the context path and the extension
String uri = request.getRequestURI();
String ctxtPath = request.getContextPath();
String cmd = getCommand(uri, ctxtPath);
return handleCommand(request, response, webChainContext.getServletContext(), cmd);
}