protected SectionRecord GetSectionRecord(string configKey, bool permitErrors) {
SectionRecord sectionRecord;
if (_sectionRecords != null) {
sectionRecord = (SectionRecord) _sectionRecords[configKey];
}
else {
sectionRecord = null;
}
if (sectionRecord != null && !permitErrors) {
sectionRecord.ThrowOnErrors();
}
return sectionRecord;
}