PhotographFilterBean filter = getRenderedObject("historyFilter");
Set<Photograph> photos = rootDomainObject.getPhotographsSet();
SortedMap<Person, UserHistory> history = new TreeMap<Person, UserHistory>();
for (Photograph photograph : photos) {
if (filter.accepts(photograph)) {
Person person = photograph.getPerson();
if (history.containsKey(person)) {
history.get(person).addPhotograph(photograph);
} else {
UserHistory user = new UserHistory(person);