class AccountService {

	public Account findAccount(Integer id) {

		logger.debug("AccountService.findAccount: id=" + id);

		Optional<Account> account = accounts.findById(id);
		if (!account.isPresent()) {
			logger.warn("AccountService.findAccount: could not find account with id: " + id);
			throw new NoRecordsFoundException();
		}

		logger.info(String.format("AccountService.findAccount - retrieved account with id: %s. Payload is: %s", id, account.get()));

		return account.get();
	}

}