introducing DocumentManager and a direct way to get document model.