code: @Override
      public byte[] serializeAttributes( final MemcachedBackupSession session, final ConcurrentMap<String, Object> attributes ) {
          final Kryo kryo = _kryoPool.borrow();
          Output out = null;
          try {
              /**
               * Creates an ObjectStream with an initial buffer size of 50KB and a maximum size of 1000KB.
               */
              out = kryo.getStreamFactory().getOutput(_initialBufferSize, _maxBufferSize);
              kryo.writeObject(out, attributes);
              return out.toBytes();
          } catch ( final RuntimeException e ) {
              throw new TranscoderDeserializationException( e );
          } finally {
              closeSilently(out);
              kryo.reset();   // to be safe
              _kryoPool.release(kryo);
          }
      }
docs: {@inheritDoc}