def = (KeyspaceDefinition) callback.configureKeySpace(keyspaceName, def);
cluster.addKeyspace(def);
log.info("added keyspace="+keyspaceName+" so it now exists");
}
context = builder.buildKeyspace(ThriftFamilyFactory.getInstance());
context.start();
keyspace = context.getClient();
//for some reason, the keyspace is not always created fast enough so sleep 3 seconds and try again