code: public Record getMainRecord()
      {
          Record record = null;
          if (m_vRecordList != null)
              record = m_vRecordList.getMainRecord();
          if (record == null)
              if (m_taskParent instanceof RecordOwner)
                  record = (Record)((RecordOwner)m_taskParent).getMainRecord(); // Look thru the parent window now
          return record;
      }
docs: Get the main record for this screen.
  @return The main record (or null if none).