Switched Item and Document to use the new MIMEEntity class