code: def apply(self, joinpoint):
          
  
          if self._enable:
              result = self._impl(joinpoint)
  
          else:
              result = joinpoint.proceed()
  
          return result
docs: Apply this advice on input joinpoint.
  
          TODO: improve with internal methods instead of conditional test.