public XResponse Execute(XGetTreeDataRequest request, IXExecutionContext context) { XTreePageInfo treePage = XTreeController.Instance.GetPageInfo(request.MetaName); XTreeLoadData treeData = treePage.GetData(request, context); if (treeData == null) { throw new ApplicationException("XTreePageInfo.GetData вернул null"); } return(new XGetTreeDataResponse(treeData.Nodes.ToArray(), !treePage.OffShowIcons ? treePage.IconTemplateURI : String.Empty)); }