code: public static void injectResourceFields(ApplicationContext springContext, Object... handlers ) {
          for (Object handler : handlers) {
              Class handlerClass = handler.getClass();
              injectResourceFields(springContext, handler, handlerClass);
  
          }
      }
docs: Inject the fields annotated with @Resource annotation with beans from a SpringContext, using the field
  name to match the bean name, or where a different annotation value is supplied use the annotation value
  as the bean name
  
  @param handlers          handler instances to configure
  @param springContext     Spring context to supply beans