public void closeConnection() { String clusterName = metadata.getClusterName(); cluster.shutdown(); System.out.println("Connection to " + clusterName + " closed."); }