Only closing the Statement explicitly will trigger the query to be included into the statistics.
Connection conn = DBCluster.getInitialConnection () ;
Statement stmt = conn.createStatement () ;
stmt.executeQuery ("SELECT * FROM properties");
stmt.executeQuery ("SELECT * FROM formats");
conn.close () ;
This will record nothing!
From the Java specification for Statement:
"...All execution methods in the Statement interface implicitly close a statement's current ResultSet object if an open one exists."
i.e. you can run SQL queries consecutively on 1 statement. Once statement.close is called the statement is useless.