}
@Override
public Account getAccount(ObjectId accountId) throws AccountNotFoundException {
if (accountId == null) {
throw new AccountNotFoundException("Passed account ID was null.");
}
Account a = accountDAO.get(accountId);
if (a == null) {
throw new AccountNotFoundException(accountId.toString());
}
// Create the event stream entry
eventService.createEvent(EventId.READ, a, null);
return a;
}