/// <summary>
    /// Convert package codes to their names.
    /// </summary>
    /// <param name="packages">The packages in the format "ECM;SCN"</param>
    private static string PackagesToString(string packages)
    {
        string names = "";

        if (!String.IsNullOrEmpty(packages))
        {
            string[] packageCodes = packages.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (string package in packageCodes)
            {
                try
                {
                    if (!String.IsNullOrEmpty(names))
                    {
                        names += ", ";
                    }

                    PackagesEnum packageEnum = package.ToEnum <PackagesEnum>();
                    names += LicenseHelper.GetPackageName(packageEnum);
                }
                catch
                {
                }
            }
        }

        return(names);
    }
    /// <summary>
    /// Convert package codes to their names.
    /// </summary>
    /// <param name="packages">The packages in the format "ECM;SCN"</param>
    private static string PackagesToString(string packages)
    {
        string names = "";

        if (!String.IsNullOrEmpty(packages))
        {
            string[] packageCodes = packages.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (string package in packageCodes)
            {
                try
                {
                    if (!String.IsNullOrEmpty(names))
                    {
                        names += ", ";
                    }

                    PackagesEnum packageEnum = PackagesEnumFunctions.ToEnum(package);
                    names += Enum.GetName(typeof(PackagesEnum), packageEnum);
                }
                catch
                {
                }
            }
        }

        return(names);
    }