docs: public void registerBean(String beanId, boolean isRequired) {
          if (beanId == null || beanId.isEmpty()) {
              return;
          }
  
          Object bean = SpringUtil.getBean(beanId);
  
          if (bean == null && isRequired) {
              throw new PluginException("Required bean resouce not found: " + beanId);
          }
  
          Object oldBean = getAssociatedBean(beanId);
  
          if (bean == oldBean) {
              return;
          }
  
          if (registeredBeans == null) {
              registeredBeans = new HashMap<>();
          }
  
          tryRegisterListener(oldBean, false);
  
          if (bean == null) {
              registeredBeans.remove(beanId);
          } else {
              registeredBeans.put(beanId, bean);
              tryRegisterListener(bean, true);
              tryRegisterController(bean);
          }
      }