while (resultsIterator.hasNext()) {
HashMap resultsHashMap = (HashMap) resultsIterator.next();
Number fileID = (Number) resultsHashMap.get("FileID");
Number attachmentID = (Number) resultsHashMap.get("AttachmentID");
try {
fileFacade.deleteFile(individualID, fileID.intValue(), attachmentFolder.getFolderId(), this.dataSource);
} catch (Exception e) {
logger.error("Exception in deleteMessageAttachments");
e.printStackTrace();
}