try {
Client client = clientProvider.getThriftClient();
if (client != null) {
//Collections.sort(keyspaceSet);
model.addAttribute("keyspaces", client.describe_keyspaces());
// Get list of column families from active keyspace.
if (activeKeyspace.length() > 0) {
KsDef ksdef = client.describe_keyspace(activeKeyspace);
List<CfDef> cfList = new ArrayList<CfDef>(ksdef.getCf_defs());