code: public Record getMainRecord()
      {
          Record record = super.getMainRecord();
          if (record == null) if (m_sessionObjectParent != null)
              record = ((BaseSession)m_sessionObjectParent).getMainRecord();    // Look thru the parent window now
          return record;
      }
docs: Get the main record for this session.
  @return The main record (or null if none).