public XElement ReadCartRules(CartType cartType)
        {
            //TODO: define rules to read files uploaded from osCommerce
            if (cartType.Equals(CartType.osCommerce) || cartType.Equals(CartType.Other))
                return null;

            XElement cartRules;
            lock (_cartRules)
            {
                if (!_cartRules.TryGetValue(cartType, out cartRules))
                {
                    var path = "";
                    try
                    {
                        path = DataPath.Instance.Root + cartType.ToString() + "Rules.xml";
                        cartRules = XElement.Load(path);
                        if (!cartRules.IsEmpty)
                            _cartRules.Add(cartType, cartRules);
                    }
                    catch (Exception ex)
                    {
                        if (BoostLog.Instance != null)
                            BoostLog.Instance.WriteEntry(EventLogEntryType.Error, "Error reading CartRules from " + path, ex, "");
                    }
                }
            }
            return cartRules;
        }