  public static void main(String[] args) throws IllegalStateException, PoolExhaustedException,
      Exception {
    CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get();
    CassandraClient client = pool.borrowClient("tush", 9160);
    try {
      Keyspace keyspace = client.getKeyspace("Keyspace1");
      ColumnPath columnPath = new ColumnPath("Standard1");
      columnPath.setColumn(bytes("column-name"));
      keyspace.insert("key", columnPath, bytes("value"));
      Column col = keyspace.getColumn("key", columnPath);
      System.out.println("Read from cassandra: " + string(col.getValue()));
    } finally {
      pool.releaseClient(client);
    }
  }

  public static void main(String[] args) throws IllegalStateException, PoolExhaustedException,
      Exception {
    CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get();
    CassandraClient client = pool.borrowClient("tush", 9160);
    try {
      Keyspace keyspace = client.getKeyspace("Keyspace1");
      ColumnPath columnPath = new ColumnPath("Standard1");
      columnPath.setColumn(bytes("column-name"));
      keyspace.insert("key", columnPath, bytes("value"));
      Column col = keyspace.getColumn("key", columnPath);
      System.out.println("Read from cassandra: " + string(col.getValue()));
      client = keyspace.getClient();
    } finally {
      pool.releaseClient(client);
    }
  }
