public List<MessageDTO> getMessagesFromFolder(FolderDTO folderDTO) throws DataProcessingException {
		Folder folder = folderDAO.getFolder(folderDTO.getId());

		if (folder == null) {
			logger.warn("Folder with name " + folderDTO.getFolderName() + " does not exist");
			throw new DataProcessingException(ExceptionType.folderDoesNotExist);
		}

		List<MessageDTO> listOfMessagesDTO = new ArrayList<MessageDTO>();

		for (Message message : folder.getListOfMessages()) {
			if (!message.getMessageReadFlag()) {
				message.setMessageReadFlag(true);
			}
			listOfMessagesDTO.add(message.getMessageDTO());
		}

		logger.info("Messages from folder " + folderDTO.getFolderName() + " successfully got");

		return listOfMessagesDTO;
	}