if (profileHandler != null) {
final StringWriter stringWriter = new StringWriter();
final PrintWriter printWriter = new PrintWriter(stringWriter);
olap4jStatement.getQuery().explain(printWriter);
printWriter.close();
profileHandler.explain(stringWriter.toString(), getQueryTiming());
}
if (this.result != null) {
this.result.close();
}
olap4jStatement.onResultSetClose(this);