code: public Record getRecord()
      {
          ContactField field = (ContactField)m_field;
          if (field.getContactTypeField() != null)
          {
              String strContactTypeID = field.getContactTypeField().toString();
              if (field.PROFILE_CONTACT_TYPE_ID.equals(strContactTypeID))
                  return field.m_recProfile;
          }
          return m_record;
      }
docs: GetRecord Method.