This pull request applies the instanceof pattern matching in the RootBeanDefinition class. This enhancement will improve code readability.