docs: def _setFlag(self, name, val, defVal):
          """set the objects property propName if the dictKey key exists in dict and it is not the same as default value defVal"""
          if not hasattr(self, "flags"):
              self.flags = {}
          if val != defVal:
              self.flags[name] = val