Removed boolean cast in setDeleteNewAttachmentFiles as the value allows null