public void populateFields() {
    ICFInternetDomainBaseObj popObj;
    ICFInternetDomainBaseObj focus = getSwingFocusAsDomainBase();
    if (focus != null) {
      popObj = (ICFInternetDomainBaseObj) (focus.getEdit());
      if (popObj == null) {
        popObj = focus;
      }
    } else {
      popObj = null;
    }
    if (getPanelMode() == CFJPanel.PanelMode.Unknown) {
      popObj = null;
    }
    if (popObj == null) {
      swingOwnerTenantObj = null;
    } else {
      swingOwnerTenantObj = (ICFBamTenantObj) popObj.getRequiredOwnerTenant(swingIsInitializing);
    }
    if (swingReferenceOwnerTenant != null) {
      swingReferenceOwnerTenant.setReferencedObject(swingOwnerTenantObj);
    }

    if (popObj == null) {
      getSwingEditorId().setInt64Value(null);
    } else {
      getSwingEditorId().setInt64Value(popObj.getRequiredId());
    }

    if (popObj == null) {
      getSwingEditorDescription().setStringValue(null);
    } else {
      getSwingEditorDescription().setStringValue(popObj.getOptionalDescription());
    }
  }