code: @SuppressWarnings("unchecked")
      private <T> T jndiLookup(PropertyKey propertyKey) {
          String property = properties.getProperty(propertyKey.getKey());
          if (property != null) {
              return isJndiLazyLookup() ?
                      (T) LazyJndiResolver.newInstance(property, DataSource.class) :
                      (T) JndiUtils.lookup(property);
          }
          return null;
      }
docs: Lookup object from JNDI
  
  @param propertyKey property key
  @param <T>         JNDI object type
  @return JNDI object