TSocket socket = new TSocket(seed, port_);
TBinaryProtocol binaryProtocol = new TBinaryProtocol(socket, false, false);
Cassandra.Client client = new Cassandra.Client(binaryProtocol);
socket.open();
Map<String,String> tokenToHostMap = (Map<String,String>) new JSONTokener(client.get_string_property(CassandraServer.TOKEN_MAP)).nextValue();
HashMap<Token, EndPoint> tokenEndpointMap = new HashMap<Token, EndPoint>();
Map<EndPoint, Token> endpointTokenMap = new HashMap<EndPoint, Token>();
for (Map.Entry<String,String> entry : tokenToHostMap.entrySet())
{