code: protected void processHandlers() {
          // processing should only be done once        
          if (handlers == null) {
              synchronized (this) {
                  if (handlers == null) {                    
                      handlers = new HashMap<>();
                      Map<String, WorkItemHandler> foundBeans = context.getBeansOfType(WorkItemHandler.class);
                      for (WorkItemHandler handler : foundBeans.values()) {
                          String name = getComponentName(handler);
                  
                          if (name != null && !name.toString().isEmpty()) {
                              logger.debug("Registering {} work item handler under name {}", handler, name);
                              handlers.put(name.toString(), handler);
                          } else {
                              logger.warn("Not possible to register {} handler due to missing name - annotate your class with @Component with given name", handler);
                          }
              
                      }                    
                  }
              }
          }
      }
docs: /*
  Helper methods