public object getSectionOrSectionLineFromKey(string key)
{
object sec = getSectionOrSectionLineFromKey(key, m_report.getHeaders());
if (sec == null)
{
sec = getSectionOrSectionLineFromKey(key, m_report.getGroupsHeaders());
if (sec == null)
{
sec = getSectionOrSectionLineFromKey(key, m_report.getDetails());
if (sec == null)
{
sec = getSectionOrSectionLineFromKey(key, m_report.getGroupsFooters());
if (sec == null)
{
sec = getSectionOrSectionLineFromKey(key, m_report.getFooters());
}
}
}
}
return sec;
}