if (request.getDescription() != null) {
body += request.getDescription();
} else {
body += "-";
}
OccupationComment occupationComment =
request.getCommentSet().stream().sorted(OccupationComment.COMPARATOR_BY_INSTANT.reversed()).findFirst().get();
body += "\n\n" + messages.getMessage("message.room.reservation.last.comment") + "\n";
if (occupationComment != null) {
body += occupationComment.getDescription();
} else {
body += "-";
}
sendEmail(request.getRequestor().getPerson().getEmailForSendingEmails(), messages.getMessage("message.room.reservation"),
body);