docs: @SuppressWarnings("unused")
      private void initalizeReferences(Collection<Bean> beans) {
          Map<BeanId, Bean> userProvided = BeanUtils.uniqueIndex(beans);
          for (Bean bean : beans) {
              for (String name : bean.getReferenceNames()) {
                  List<BeanId> values = bean.getReference(name);
                  if (values == null) {
                      continue;
                  }
                  for (BeanId beanId : values) {
                      // the does not exist in storage, but may exist in the
                      // set of beans provided by the user.
                      Bean ref = userProvided.get(beanId);
                      if (ref == null) {
                          Optional<Bean> optional = beanManager.getEager(beanId);
                          if (optional.isPresent()) {
                              ref = optional.get();
                          }
                      }
                      beanId.setBean(ref);
                      schemaManager.setSchema(Arrays.asList(beanId.getBean()));
                  }
              }
          }
      }