public static void BuildDataPart(string dataPartFieldData, Dictionary <IDataListVerifyPart, string> unique, bool isJsonObjectSource)
        {
            var dataLanguageParser = new Dev2DataLanguageParser();

            dataPartFieldData = DataListUtil.StripBracketsFromValue(dataPartFieldData);
            IDataListVerifyPart verifyPart;

            if (isJsonObjectSource)
            {
                var isValid = IsJSonInputValid(dataPartFieldData, dataLanguageParser);
                if (isValid)
                {
                    verifyPart = IntellisenseFactory.CreateJsonPart(dataPartFieldData);
                    AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                }
            }
            else
            {
                AddDataUniquePart(dataPartFieldData, dataLanguageParser, unique);
            }
        }
        public static void BuildDataPart(string dataPartFieldData, Dictionary <IDataListVerifyPart, string> unique, bool isJsonObjectSource = false)
        {
            Dev2DataLanguageParser dataLanguageParser = new Dev2DataLanguageParser();

            dataPartFieldData = DataListUtil.StripBracketsFromValue(dataPartFieldData);
            IDataListVerifyPart verifyPart;

            if (isJsonObjectSource)
            {
                var isValid = IsJSonInputValid(dataPartFieldData, dataLanguageParser);
                if (isValid)
                {
                    verifyPart = IntellisenseFactory.CreateJsonPart(dataPartFieldData);
                    AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                }
            }
            else
            {
                string[] fieldList = dataPartFieldData.Split('.');
                string   fullyFormattedStringValue;
                if (fieldList.Length > 1 && !String.IsNullOrEmpty(fieldList[0]))
                {
                    // If it's a RecordSet Containing a field
                    bool recAdded = false;

                    foreach (var item in fieldList)
                    {
                        if (item.EndsWith(")") && item == fieldList[0])
                        {
                            if (item.Contains("("))
                            {
                                fullyFormattedStringValue = RemoveRecordSetBrace(item);
                                var intellisenseResult = dataLanguageParser.ValidateName(fullyFormattedStringValue, "");
                                if (intellisenseResult == null)
                                {
                                    recAdded   = true;
                                    verifyPart =
                                        IntellisenseFactory.CreateDataListValidationRecordsetPart(fullyFormattedStringValue,
                                                                                                  String.Empty);
                                    AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                                }
                            }
                        }
                        else if (item == fieldList[1] && !(item.EndsWith(")") && item.Contains(")")))
                        {
                            // If it's a field to a record set
                            var intellisenseResult = dataLanguageParser.ValidateName(item, "");
                            if (intellisenseResult == null && recAdded)
                            {
                                verifyPart = IntellisenseFactory.CreateDataListValidationRecordsetPart(
                                    RemoveRecordSetBrace(fieldList.ElementAt(0)), item);
                                AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                            }
                        }
                        else
                        {
                            break;
                        }
                    }
                }
                else if (fieldList.Length == 1 && !String.IsNullOrEmpty(fieldList[0]))
                {
                    // If the workflow field is simply a scalar or a record set without a child
                    if (dataPartFieldData.EndsWith(")") && dataPartFieldData == fieldList[0])
                    {
                        if (dataPartFieldData.Contains("("))
                        {
                            fullyFormattedStringValue = RemoveRecordSetBrace(fieldList[0]);
                            var intellisenseResult = dataLanguageParser.ValidateName(fullyFormattedStringValue, "");
                            if (intellisenseResult == null)
                            {
                                verifyPart = IntellisenseFactory.CreateDataListValidationRecordsetPart(fullyFormattedStringValue, String.Empty);
                                AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                            }
                        }
                    }
                    else
                    {
                        var intellisenseResult = dataLanguageParser.ValidateName(dataPartFieldData, "");
                        if (intellisenseResult == null)
                        {
                            verifyPart = IntellisenseFactory.CreateDataListValidationScalarPart(RemoveRecordSetBrace(dataPartFieldData));
                            AddDataVerifyPart(verifyPart, verifyPart.DisplayValue, unique);
                        }
                    }
                }
            }
        }