private static void engine_config_finalize_handle_single_mapping(Engine_VerbMapping mapping, Dictionary<string, Engine_Component> components, Dictionary<string, Engine_RestrictionRange> restrictionRanges) { // If the mapping didn't exist, do nothing if (mapping == null) return; // Map the component if ((!String.IsNullOrEmpty(mapping.ComponentId)) && (components.ContainsKey(mapping.ComponentId))) { mapping.Component = components[mapping.ComponentId]; } else { mapping.Component = null; } // Map any restriction range if (!String.IsNullOrEmpty(mapping.RestrictionRangeSetId)) { string[] restrictions = mapping.RestrictionRangeSetId.Split(" |,".ToCharArray()); foreach (string thisRestriction in restrictions) { if (restrictionRanges.ContainsKey(thisRestriction.Trim())) { mapping.Add_RestrictionRange(restrictionRanges[thisRestriction.Trim()]); } } } else { mapping.RestrictionRanges = null; } }