code: private Map<String, Map<String, String>> buildInjectionMap(NamingResources namingResources) {
          Map<String, Map<String, String>> injectionMap = new HashMap<String, Map<String, String>>();
          for (Injectable resource: namingResources.findLocalEjbs()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findEjbs()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findEnvironments()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findMessageDestinationRefs()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findResourceEnvRefs()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findResources()) {
              addInjectionTarget(resource, injectionMap);
          }
          for (Injectable resource: namingResources.findServices()) {
              addInjectionTarget(resource, injectionMap);
          }
          return injectionMap;
      }
docs: Copied from Tomcat 7 StandardContext
  
  @param namingResources
  @return injectionMap