*/
void registerUser(AuthUser user) {
//Could probably replace this with some @NotNulls
if (Strings.isNullOrEmpty(user.getServiceSpecificUserId())) {
throw new AuthException("Cannot register user with null or empty " +
"external user id");
}
if (Strings.isNullOrEmpty(user.getSanitizedEmailAddress())) {
throw new AuthException("Cannot register user with null or empty " +
"email address");
}
if (Strings.isNullOrEmpty(user.getAuthServiceName())) {
throw new AuthException("Cannot register user with null or empty " +
"auth resource name");
}
Ofy.save().entity(user).now();
}