ECMS-4991 consider both cases: UIDocumentInfo or UIDocumentWithTree is rendered