class UserService {

	public User findUser(Integer id) {

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

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

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

		return account.get();
	}

}