*/
protected RemotingPacket decodeRequest(HttpServletRequest req)
throws Exception {
log.debug("Decoding request");
ByteBuffer reqBuffer = ByteBuffer.allocate(req.getContentLength());
ServletUtils.copy(req.getInputStream(), reqBuffer.asOutputStream());
reqBuffer.flip();
RemotingPacket packet = (RemotingPacket) codecFactory
.getSimpleDecoder().decode(null, reqBuffer);
String path = req.getContextPath();
if (path == null) {