code: Token token(BytesRef bytesRef) {
          String string = bytesRef.utf8ToString();
          ByteBuffer bb = ByteBufferUtils.fromString(string);
          return factory.fromByteArray(bb);
      }
docs: Returns the Cassandra {@link Token} represented by the specified Lucene {@link BytesRef}.
  
  @param bytesRef A Lucene {@link BytesRef} representation of a Cassandra {@link Token}.
  @return The Cassandra {@link Token} represented by the specified Lucene {@link BytesRef}.