in src/main/java/com/googlesource/gerrit/plugins/task/TaskAttributeFactory.java [94:112]
protected PluginDefinedInfo createWithExceptions(ChangeData c) {
TaskPluginAttribute a = new TaskPluginAttribute();
try {
for (Node node : definitions.getRootNodes(c)) {
if (node == null) {
a.roots.add(invalid());
} else {
new AttributeFactory(node).create().ifPresent(t -> a.roots.add(t));
}
}
} catch (ConfigInvalidException | IOException e) {
a.roots.add(invalid());
}
if (a.roots.isEmpty()) {
return null;
}
return a;
}