public int GetDomainNodeId()
        {
            if (_domainNodeId != 0)
            {
                return(_domainNodeId);
            }

            var domainNode = ApplicationContext.Current.Services.DomainService.GetByName(GetDomain());

            if (domainNode?.RootContentId != null)
            {
                _domainNodeId = (int)domainNode.RootContentId;
            }
            else
            {
                var home = _contentHelper
                           .GetDescendantOrSelf <Home>(_contentHelper.GetRoot().Id);
                _domainNodeId = home.Id;
            }

            return(_domainNodeId);
        }