code: private void injectResources(Object target, Map<String, Object> values) {
          if (target == null) {
              return;
          }
  
          Class<?> clazz = target.getClass();
  
          for (Method method : clazz.getMethods()) {
              Resource resource = method.getAnnotation(Resource.class);
              if (resource != null) {
                  String name = resource.name();
                  Object val = values.get(name);
                  try {
                      method.invoke(target, val);
                  } catch (Exception e) {
                      LOGGER.warn("Error while injecting named " + name + " resource", e);
                  }
              }
          }
      }
docs: known resources