feature #5516 :   Fix some problems coming from the renaming of SimpleDocument#file to SimpleDocument#attachment