class UserService {

	public Integer saveUser(User userRequest) {

		logger.debug("UserService.saveAccount:" + userRequest.toString());
		// need to set some stuff that cannot be null!
		if (userRequest.getLogincount() == null) {
			userRequest.setLogincount(0);
		}
		if (userRequest.getLogoutcount() == null) {
			userRequest.setLogoutcount(0);
		}

		User account = user.save(userRequest);
		logger.info("UserService.saveAccount: account saved: " + account);
		return account.getId();
	}

}