docs: protected static void lookupFieldResource(javax.naming.Context context,
              Object instance, Field field, String name)
              throws NamingException, IllegalAccessException
      {
  
          Object lookedupResource;
  
          if ((name != null) && (name.length() > 0))
          {
              // TODO local or global JNDI
              lookedupResource = context.lookup(JAVA_COMP_ENV + name);
          }
          else
          {
              // TODO local or global JNDI 
              lookedupResource = context.lookup(JAVA_COMP_ENV + instance.getClass().getName() + "/" + field.getName());
          }
  
          boolean accessibility = field.isAccessible();
          field.setAccessible(true);
          field.set(instance, lookedupResource);
          field.setAccessible(accessibility);
      }