log.debug("Time elapsed while fetching message headers:"
+ (System.currentTimeMillis() - startTime));
}
List<EmailMessage> emails = new LinkedList<EmailMessage>();
for (Message currentMessage : messages) {
<BUG>EmailMessage emailMessage = wrapMessage(currentMessage, false);
</BUG>
emails.add(emailMessage);
}
Collections.reverse(emails);

log.debug("Time elapsed while fetching message headers:"
+ (System.currentTimeMillis() - startTime));
}
List<EmailMessage> emails = new LinkedList<EmailMessage>();
for (Message currentMessage : messages) {
EmailMessage emailMessage = wrapMessage(currentMessage, false, session);
emails.add(emailMessage);
}
Collections.reverse(emails);
