code: private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
          List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
          if (injectionTargets != null && injectionTargets.size() > 0) {
              String jndiName = resource.getName();
              for (InjectionTarget injectionTarget: injectionTargets) {
                  String clazz = injectionTarget.getTargetClass();
                  Map<String, String> injections = injectionMap.get(clazz);
                  if (injections == null) {
                      injections = new HashMap<String, String>();
                      injectionMap.put(clazz, injections);
                  }
                  injections.put(injectionTarget.getTargetName(), jndiName);
              }
          }
      }
docs: Copied from Tomcat 7 StandardContext
  
  @param resource
  @param injectionMap