private Collection bindAndExecuteQuery(String queryName) throws DatabaseQueryException {
try {
return ThreadSession.get().getNamedQuery(queryName).
setInteger("personId", personId).setDate("date", new Date()).list();
} catch (HibernateException e) {
throw new DatabaseQueryException(e);
}
}