protected Document(EntityRef subject, IDesktopWindow desktopWindow) { _key = DocumentManager.GenerateDocumentKey(this, subject); _desktopWindow = desktopWindow; }