code: public String getDefaultVersion()
      {
          Record recMessageVersion = ((ReferenceField)this.getRecord(MessageControl.MESSAGE_CONTROL_FILE).getField(MessageControl.DEFAULT_VERSION_ID)).getReference();
          if (recMessageVersion != null)
              if ((recMessageVersion.getEditMode() == DBConstants.EDIT_CURRENT) || (recMessageVersion.getEditMode() == DBConstants.EDIT_IN_PROGRESS))
                  return recMessageVersion.getField(MessageVersion.CODE).toString();
          return "2007B"; // Never
      }
docs: GetDefaultVersion Method.