public static ACustomDataValue createStringField(ACustomDataValue[] data, ICustomData obj, string key)
        {
            ACustomDataValue cdv = new CustomDataValueString()
            {
                key = key
            };

            if (!customFieldExists(data, key))
            {
                //data.Add(cdv);
                obj.addCustomDataValue(cdv);
                return(cdv);
            }
            else
            {
                return(data.Where(c => c.key == key).FirstOrDefault());
            }
        }