if (user == null) {
//user is new
user = new User();
user.setEmail(StringUtils.isBlank(fbEmail) ? "email@domain.com" : fbEmail);
user.setName(StringUtils.isBlank(fbName) ? "No Name" : fbName);
user.setPassword(new UUID().toString());
user.setIdentifier(Config.FB_PREFIX.concat(fbID));
String id = user.create();
if (id == null) {
throw new AuthenticationServiceException("Authentication failed: cannot create new user.");
}