public void endElement(String uri, String localName, String qName) throws SAXException {
        if (qName.equals(TRANSACTIONS_ELEMENT)) {
            parentElement = ROOT_ELEMENT;
        }
        if (currentElement.equals("transaction")) {
            xmlTransaction.append("</" + qName + ">");
        }
        if (qName.equals("transaction")) {
            try {
                Transaction transaction = TransactionParser.readTransaction(new ByteArrayInputStream(xmlTransaction
                        .toString().getBytes()));
                TransactionSummary transactionSummary = buildTransactionSummary(transaction);
                transactions.add(transactionSummary);
            } catch (ParserConfigurationException e) {
                throw new SAXException(e);
            } catch (ParseException e) {
                throw new SAXException(e);
            } catch (IOException e) {
                throw new SAXException(e);
            }
        }
    }