GerritApi tempClient = createClientWithCustomAuthData(gerritAuthData);
if (gerritAuthData.isLoginAndPasswordAvailable()) {
AccountInfo user = tempClient.accounts().self().get();
return user != null;
} else {
tempClient.changes().query().withLimit(1).get();
return true;
}
}
/**