code: public Record makeReferenceRecord(RecordOwner recordOwner)
      {
          ContactTypeField fldContactType = this.getContactTypeField();
          if (fldContactType == null)
              return null;
          if (this.getRecord().getRecordOwner() != null)
              recordOwner = this.getRecord().getRecordOwner();
          ContactType recContactType = (ContactType)fldContactType.getReferenceRecord();
          recContactType = (ContactType)fldContactType.getReference();
          if (m_recVendor == null)
          {
              String strRecordName = "Vendor";
              m_recVendor = (Company)recContactType.makeRecordFromRecordName(strRecordName, recordOwner);
              if (m_recVendor != null)
                  VENDOR_CONTACT_TYPE_ID = recContactType.getContactType(m_recVendor).getField(ContactType.ID).toString();
          }
          if (m_recProfile == null)
          {
              String strRecordName = "Profile";
              m_recProfile = (Company)recContactType.makeRecordFromRecordName(strRecordName, recordOwner);
              if (m_recProfile != null)
                  PROFILE_CONTACT_TYPE_ID = recContactType.getContactType(m_recProfile).getField(ContactType.ID).toString();
          }
          recContactType = (ContactType)fldContactType.getReference();
          String strHeaderRecordName = null;
          if (recContactType != null)
              strHeaderRecordName = recContactType.getField(ContactType.CODE).toString();
          if ((strHeaderRecordName == null) || (strHeaderRecordName.length() == 0))
              strHeaderRecordName = recordOwner.getProperty(fldContactType.getFieldName());
          Record record = m_recVendor;
          if (strHeaderRecordName != null)
          {    // Always
              if ("Vendor".equalsIgnoreCase(strHeaderRecordName))
                  record = m_recVendor;
              else if ("Profile".equalsIgnoreCase(strHeaderRecordName))
                  record = m_recProfile;
          }
          return record;
      }
docs: Get (or make) the current record for this reference.