code: public static AbstractMessage unserialize( byte[] rawData , boolean asInternalCopy )
      {
      	RawDataBuffer rawIn = new RawDataBuffer(rawData);
          byte type = rawIn.readByte();
          AbstractMessage message = MessageType.createInstance(type);
          message.initializeFromRaw(rawIn);
          if (asInternalCopy)
          	message.setInternalCopy(true);
          
          return message;
      }
docs: Unserialize a message