public Counts loadCountsForUserSpace(User user, Space space) {
HibernateTemplate ht = getHibernateTemplate();
List<Object[]> loggedByList = ht.find("select status, count(item) from Item item"
+ " where item.loggedBy.id = ? and item.space.id = ? group by item.status", new Object[] {user.getId(), space.getId()});
List<Object[]> assignedToList = ht.find("select status, count(item) from Item item"
+ " where item.assignedTo.id = ? and item.space.id = ? group by item.status", new Object[] {user.getId(), space.getId()});
List<Object[]> statusList = ht.find("select status, count(item) from Item item"
+ " where item.space.id = ? group by item.status", space.getId());
Counts c = new Counts(true);
for(Object[] oa : loggedByList) {