code: public void initBeans(Object[] beans) {
          this.controllers = Arrays.stream(beans).filter(bean -> this.getController(bean) != null).map(bean -> this.getController(bean)).collect(Collectors.toList());
      }
docs: Init beans.
  
  @param beans the beans