private static void FillCustomLocationDescriptionFields(AttributeHolder attributeHolder, string field, string filter) { try { DataSetUtil.FillBlank(attributeHolder, field); var location = attributeHolder.GetAttribute("location_.description"); if (DataSetUtil.IsValid(location, typeof(String))) { var l = location.ToString(); if (l.Contains(filter)) { var attributeAux = Regex.Split(l, filter); if (attributeAux.Count() > 1) { var attribute = Regex.Split(attributeAux[1], "/"); if (attribute.Count() > 1) { attributeHolder.Attributes[field] = attribute[0]; } } } } } catch { DataSetUtil.FillBlank(attributeHolder, field); } }