in src/main/java/com/googlesource/gerrit/plugins/pubsub/PubSubConfiguration.java [119:126]
private String getMandatoryString(String name, String defaultValue) throws IllegalStateException {
String value = fromGerritConfig.getString(name, defaultValue);
if (value == null) {
throw new IllegalStateException(
String.format("Invalid configuration: parameter '%s' is mandatory", name));
}
return value;
}