Add Exportable interface to Document entities.
Refactor code template.