@Override
	public HandshakeBuilder postProcessHandshakeResponseAsServer(
			Handshakedata request, HandshakeBuilder response) throws Exception {
		response.put("Upgrade", "websocket");
		response.put("Connection", request.getFieldValue("Connection")); // to
																			// respond
																			// to
																			// a
																			// Connection
																			// keep
																			// alives
		response.setHttpStatusMessage("Switching Protocols");
		String seckey = request.getFieldValue("Sec-WebSocket-Key");
		if (seckey == null)
			throw new Exception("missing Sec-WebSocket-Key");
		response.put("Sec-WebSocket-Accept", generateFinalKey(seckey));
		return response;
	}