public static void LoadDomainData(string domainName) { try { //If not existed in Domain WKL if (!Wkl.MainCtrl.CommonCtrl.CommonProfile.DomainInfos.ContainsKey(domainName)) { DomainInfo domainInfo = Wkl.MainCtrl.CommonCtrl.CreateDomainInfo(domainName); DSDomain domainData = MemorySegment.GetDomain(AssetManager.FileAdapter.DataSegmentDllPath, domainName); domainInfo.DSDomainData = domainData; } } catch (BaseException srvExp) { Services.ServiceException newSrvExp = new Services.ServiceException(ErrorCode.ipe_LoadDomainDataError); newSrvExp.Errors.Add(srvExp); throw newSrvExp; } catch (Exception ex) { Services.ServiceException srvExp = new Services.ServiceException(ErrorCode.ipe_LoadDomainDataError, MessageUtils.Expand(Properties.Resources.ipe_LoadDomainDataError, ex.Message), ex.StackTrace); throw srvExp; } }