newContributions.add(contribution);
long id = contribution.getContributorId(); Long Id = new Long(id);  KeyedElement existingContribution = getFormerContributions().getByKey(Id); if (existingContribution != null) { removeContribution(id); newContributions.add(existingContribution); } else existingContribution = newContributions.getByKey(Id);  if (existingContribution != null) ((Contribution) existingContribution).mergeContribution(contribution); else newContributions.add(contribution);
	synchronized void addContribution(Contribution contribution) {		isDirty = true;		newContributions.add(contribution);	}