public void close() { if (preparedStatement != null) { connection.removeStatement(preparedStatement); try { this.getQuirks().closeStatement(preparedStatement); } catch (Throwable ex) { logger.warn("Could not close statement.", ex); } } }