docs: public Record setRecordCurrent()
      {
          Record recordMain = this.getMainRecord();
          try   {
              if (recordMain != null)
              {
                  if (m_objectID != null)
                  { // Read the request
                      if (recordMain.setHandle(m_objectID, DBConstants.BOOKMARK_HANDLE) != null)
                          recordMain.edit();
                      else
                          m_objectID = null;
                  }
                  if (m_objectID == null)
                      if ((recordMain.getEditMode() != DBConstants.EDIT_CURRENT) && (recordMain.getEditMode() != DBConstants.EDIT_IN_PROGRESS))   // If the record is current, don't touch it.
                  {
                      recordMain.addNew();
                  }
              }
          } catch (DBException ex)    {
              Debug.print(ex);
              ex.printStackTrace();
              m_objectID = null;
          }
          if (m_objectID == null)
              return null;
          else
              return recordMain;
      }