code: private Object getJavaObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception {
          // Return null if we don't find a binding so that the caller can
          // use JNDI if enabled.
          Object resource = null;
  
          NamingConstants.JavaColonNamespace namespace = NamingConstants.JavaColonNamespace.match(bindingName);
          if (namespace != null) {
              ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
              if (cmd != null) {
                  OSGiInjectionScopeData isd = injectionEngine.getInjectionScopeData(cmd, namespace);
                  if (isd != null) {
                      String name = namespace.unprefix(bindingName);
  
                      InjectionBinding<?> binding = isd.getInjectionBinding(namespace, name);
                      if (binding == null && isd.processDeferredReferenceData()) {
                          // Try again after processing deferred reference data.
                          binding = isd.getInjectionBinding(namespace, name);
                      }
  
                      if (binding != null) {
                          resource = getBindingObjectInstance(c, envmt, className, resourceRefInfo, ref, binding);
                      }
                  }
              }
  
              if (resource == null && namespace == NamingConstants.JavaColonNamespace.COMP) {
                  resource = getDefaultJavaCompObjectInstance(namespace, bindingName, resourceRefInfo);
              }
  
              // If not found and the customer did not provide a binding, then try and
              // auto-link to a resource that matches on name in the service registry.
              if (resource == null && ref.defaultBinding && !ref.name.startsWith("java:")) {
                  resource = createResource(ref.name, className, ref.name, resourceRefInfo);
              }
          }
  
          return resource;
      }
docs: Try to obtain an object instance from a "java:" namespace.
  
  @return the object instance, or null if an object could not be found