code: private static List<String> initReplicas(
              final Comparable token, final Session session, final IPartitioner partitioner) {
          final AbstractType tkValidator = partitioner.getTokenValidator();
          final Metadata metadata = session.getCluster().getMetadata();
  
          @SuppressWarnings("unchecked")
          Set<Host> replicas = metadata.getReplicas(quote(session.getLoggedKeyspace()),
                  ByteBuffer.wrap(token.toString().getBytes()));
  
          return Lists.newArrayList(Iterables.transform(replicas, new Function<Host, String>() {
              @Nullable
              @Override
              public String apply(
                      @Nullable
                      Host input) {
                  assert input != null;
                  return input.getAddress().getHostName();
              }
          }));
      }
docs: Given a token, fetches the list of replica machines holding that token.
  
  @param token       the token whose replicas we want to fetch.
  @param session     the connection to the cluster.
  @param partitioner the partitioner used in the cluster.
  @return the list of replica machines holding that token.