code: public static BeanDefinitionHolder registerBean(String beanId, Class<?> beanClass, ParserContext parserContext, boolean shouldFireEvents) {
          return registerBean(beanId, BeanDefinitionBuilder.genericBeanDefinition(beanClass).getBeanDefinition(), parserContext, shouldFireEvents);
      }
docs: Creates new bean definition from bean class and registers new bean in parser registry.
  Returns bean definition holder.
  @param beanId
  @param beanClass
  @param parserContext
  @param shouldFireEvents