code: public Record getMainRecord()
      {
          Record record = super.getMainRecord();
          if (record == null)
              record = new Script(this);
          return record;
      }
docs: Get the main record for this screen.
  @return The main record (or null if none).