We could join these two method into one as the info about whether the bean is an Interceptor or Decorator is obtained in the toString method of the Object param2.