code: @SuppressWarnings("unchecked")
      public BytesRef bytesRef(Token token) {
          ByteBuffer bb = factory.toByteArray(token);
          byte[] bytes = ByteBufferUtils.asArray(bb);
          return new BytesRef(bytes);
      }
docs: Returns the Lucene {@link BytesRef} represented by the specified Cassandra {@link Token}.
  
  @param token A Cassandra {@link Token}.
  @return The Lucene {@link BytesRef} represented by the specified Cassandra {@link Token}.