// issue a Query
 public void run(Query q, boolean shouldPause) {
   try {
     QueryResult result = bucket.query(q);
     printout(result, shouldPause);
   } catch (Exception e) {
     LOGGER.error("Error while issuing " + demoName(), e);
   }
 }
 public void run(Statement statement) {
   try {
     QueryResult result = bucket.query(statement);
     printout(result, false);
   } catch (Exception e) {
     LOGGER.error("Error while issuing statement " + demoName(), e);
   }
 }
 private void pause(boolean shouldPause) {
   try {
     if (shouldPause) {
       System.in.read();
     }
   } catch (IOException e) {
     LOGGER.error("pause error", e);
   }
 }