if (userId != null) {
try {
setupUser(client, userId);
} catch (UnsupportedCallbackException uce) {
AuthException ae = new AuthException();
ae.initCause(uce);
throw ae;
}
} else if (requestPolicy.isMandatory()) {
// otherwise, if the login is mandatory, it's a failure, since
// there was no user id