code: public static String batchQueryGenerator(List<String> statements) {
          StringBuilder sb = new StringBuilder("BEGIN BATCH \n");
  
          for (String statement : statements) {
              sb.append(statement).append("\n");
          }
  
          sb.append(" APPLY BATCH;");
  
          return sb.toString();
      }
docs: Returns a CQL batch query wrapping the given statements.
  
  @param statements the list of statements to use to generate the batch statement.
  @return the batch statement.