function processTransaction() { validate(); persist(); // TODO: add call to notifyListeners() }