code: def updateBeforeDecorator(function):
          
          def _updateBeforeDecorator(self, *args, **kwargs):
              if self.forceFullSync:
                  self.reload()
              return function(self, *args, **kwargs)
          return _updateBeforeDecorator
docs: Function updateAfterDecorator
          Decorator to ensure local dict is sync with remote foreman