*/
protected void cleanUpGerritCauses(GerritCause firstFound, AbstractBuild build) {
List<Cause> causes = build.getAction(CauseAction.class).getCauses();
int pos = causes.indexOf(firstFound) + 1;
while (pos < causes.size()) {
Cause c = causes.get(pos);
if (c.equals(firstFound)) {
causes.remove(pos);
} else {
pos++;
}
}