paramContactTimestampEnd = DateUtility.getEndOfDay(sdf.parse(form.getContactTimestampEnd()));
} catch (ParseException e) {
log.error("bad form validation", e);
}
ContactDAO dao = new ContactDAO();
count = dao.countListForCompany(company.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, user);
if (count < page.getFirstEntry())
page.setPage(1);
if (count > 0)
list = dao.getListForCompany(company.getId(), paramSubject, paramBoundType, paramContactType, paramContactTimestampStart, paramContactTimestampEnd, paramName, sort, page, user);
else
list = new ArrayList();
ScrollBean scroll = new ScrollBean();
scroll.setCount(count);