@Override public User findByName(String name) { return userRepository.findByName(name); }
private boolean isUserNameAlreadyTaken(String name) { return userRepository.findByName(name) != null; }