try {
in = s.getInputStream();
int len = this.getContentLength(in);
XcpServerImpl xcpServer =
(XcpServerImpl)XcpServerFactory.getByPort(s.getLocalPort());
LimitedReader r = new LimitedReader(in, len, true);
xcpServer.receiveData(r, this.responseQueue, this.parser);
out = s.getOutputStream();
this.respond(out);
} catch(Exception ex) {
log.error("error reading request", ex);