map.put("modified", dateFormat.format(m.getLastModified()));
// message attachments
ForumManager fm = ForumManager.getInstance();
OlatRootFolderImpl msgContainer = fm.getMessageContainer(forum.getKey(), m.getKey());
map.put("messageContainer", msgContainer);
List<VFSItem> attachments = new ArrayList<VFSItem>(msgContainer.getItems(new VFSItemExcludePrefixFilter(MessageEditController.ATTACHMENT_EXCLUDE_PREFIXES)));
// List attachments = msgContainer.getItems();
map.put("attachments", attachments);
if (attachments == null || attachments.size() == 0) map.put("hasAttachments", Boolean.FALSE);
else map.put("hasAttachments", Boolean.TRUE);
// number of children and modify/delete permissions