Working with DocumentModel