protected void createSessionsTable(List<Session> sessions) { table().attr("cellpadding", "0", "cellspacing", "0", "border", "0", "class", "display"); thead(); tr(); createThs("Id", "Last Used"); end(); end(); tbody(); for (Session s : sessions) { tr(); createTds(s.getId(), formatDurationHMS(System.currentTimeMillis() - s.getLastUsed())); end(); } end(); end(); }