forum = (Forum)forums.iterator().next();
Trace.log("Last created forum: "+forum.getForumUuid());
Trace.log("Last created forum: "+forum.getPublished());
Iterator<Forum> i = forums.iterator();
while (i.hasNext()) {
BaseForumEntity c= i.next();
Trace.log("Last created forum: "+((Forum)c).getForumUuid());
Trace.log("Last created forum: "+c.getTitle());
Trace.log("Last created forum: "+c.getPublished());
}
} catch (AuthenticationException pe) {
if (pe.getCause() != null) {
pe.getCause().printStackTrace();
}