final Node[] nodes = report.getNodeArray();
final FormulaParser parser = new FormulaParser();
final ArrayList expressions = new ArrayList();
final OfficeReport officeReport = (OfficeReport) ((Section) nodes[0]).getNode(0);
final Section reportBody = (Section) officeReport.getBodySection();
collectGroupExpressions(reportBody.getNodeArray(), expressions, parser, officeReport.getExpressions());
parameters.put(SDBCReportDataFactory.GROUP_EXPRESSIONS, expressions);
final String command = (String) officeReport.getAttribute(OfficeNamespaces.OOREPORT_NS, "command");
final String commandType = (String) officeReport.getAttribute(OfficeNamespaces.OOREPORT_NS, SDBCReportDataFactory.COMMAND_TYPE);
final String escapeProcessing = (String) officeReport.getAttribute(OfficeNamespaces.OOREPORT_NS, SDBCReportDataFactory.ESCAPE_PROCESSING);
report.setQuery(command);