code: public static Compressor getCompressor(CompressionCodec codec) {
      Compressor compressor = borrow(compressorPool, codec.getCompressorType());
      if (compressor == null) {
        compressor = codec.createCompressor();
        LOG.info("Got brand-new compressor");
      } else {
        LOG.debug("Got recycled compressor");
      }
      return compressor;
    }
docs: Get a {@link Compressor} for the given {@link CompressionCodec} from the
  pool or a new one.
  
  @param codec the <code>CompressionCodec</code> for which to get the
  <code>Compressor</code>
  @return <code>Compressor</code> for the given
  <code>CompressionCodec</code> from the pool or a new one