}
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
Packet packet = wireFormat.fromString(readRequestBody(request));
if( packet.getPacketType() == Packet.WIRE_FORMAT_INFO ) {
// Can we handle the requested wire format?
WireFormatInfo info = (WireFormatInfo) packet;
if (!canProcessWireFormatVersion(info.getVersion())) {
response.sendError(HttpServletResponse.SC_NOT_FOUND, "Cannot process wire format of version: " + info.getVersion());