private void doSendCompressMessage(GSTextMessageImpl message,Transaction tx,long ttl) throws RemoteException, TransactionException {
  Object messageBody=message.Body;
  try {
    MarshObject compressedObject=compressObject(message.Body);
    message.Body=compressedObject;
  }
 catch (  IOException e) {
    if (_logger.isLoggable(Level.SEVERE)) {
      _logger.severe("GSSessionImpl.doSend(): IOException while compressing message body. Sending uncompressed: " + message.Body);
    }
  }
  try {
    m_space.write(message,tx,ttl);
    m_numOfProducedMsg++;
  }
  finally {
    if (message.Body instanceof MarshObject) {
      message.Body=messageBody;
    }
  }
}

private void doSendCompressMessage ( GSTextMessageImpl message , Transaction tx , long ttl ) throws RemoteException , TransactionException { Object messageBody = message . Body ; try { MarshObject compressedObject = compressObject ( message . Body ) ; message . Body = compressedObject ; } catch ( IOException e ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . severe ( "GSSessionImpl.doSend(): IOException while compressing message body. Sending uncompressed: " + message . Body ) ; } } try { m_space . write ( message , tx , ttl ) ; m_numOfProducedMsg ++ ; } finally { if ( message . Body instanceof MarshObject ) { message . Body = messageBody ; } } }
compresses a message and then sends it .
