in src/main/java/com/criteo/gerrit/plugins/automerge/AtomicityHelper.java [181:191]
private IdentifiedUser getBotUser() {
try {
Set<Account.Id> ids = emails.getAccountFor(config.getBotEmail());
if (ids.isEmpty()) {
throw new RuntimeException("No user found with email: " + config.getBotEmail());
}
return factory.create(ids.iterator().next());
} catch (IOException | StorageException e) {
throw new RuntimeException("Unable to get account with email: " + config.getBotEmail(), e);
}
}