@Override
    public void close() {
        try {
            try {
                if (rs != null) {
                    rs.close();
                }
            } finally {
                if (stmt != null) {
                    stmt.close();
                }
            }
        } catch (SQLException e) {
            throw configuration.translate(e);
        } finally {
            if (listener != null) {
                listener.end(context);
            }
        }
    }
{@code SQLResultIterator} is an Iterator adapter for JDBC result sets with customizable projections

@author tiwe

@param <T>
querydsl-sql/src/main/java/com/querydsl/sql/SQLResultIterator.java