Switched Document#getEmbeddedObjects(boolean) to Document#getAttachments