byte proto_version = ProtocolVersions.negotiateProtocolVersion(
message.getMinProtocolVersion(), message.getPrefProtocolVersion() );
if ( proto_version < 0 ) {
throw new CloseSessionIndicator( new SessionCloseIMessage(
new FormattedTextResourceKey( Resources.INCOMPATIBLE_PROTOCOL_VERSION,
Byte.valueOf( ProtocolVersions.MIN_PROTOCOL_VERSION ),
Byte.valueOf( ProtocolVersions.PROTOCOL_VERSION ),
Byte.valueOf( message.getMinProtocolVersion() ),
Byte.valueOf( message.getPrefProtocolVersion() ) ), false ) );
}