} else if (message instanceof IoBuffer) {
SoapTcpSessionState sessionState = (SoapTcpSessionState)session.getAttribute("sessionState");
if (sessionState != null
&& sessionState.getStateId() == SoapTcpSessionState.SOAP_TCP_SESSION_STATE_NEW) {
IoBuffer buffer = (IoBuffer) message;
InputStream inStream = buffer.asInputStream();
byte magicIdBuffer[] = new byte[MAGIC_IDENTIFIER.length()];
inStream.read(magicIdBuffer);
String magicId = new String(magicIdBuffer, "US-ASCII");
if (magicId.equals(MAGIC_IDENTIFIER)) {
int version[] = new int[4];