/// <summary>
        /// Gets reference field from an argument.
        /// </summary>
        private static string GetFromArgument(ArgumentProperties args, string key)
        {
            string result = null;

            if (args.Contains(key))
            {
                result = args.GetValue(key);
                args.Remove(key);
            }

            return(result);
        }