code: private Object getTraceable(Object d) throws ResourceException {
          WSJdbcTracer tracer = new WSJdbcTracer(helper.getTracer(), helper.getPrintWriter(), d, type, null, true);
  
          Set<Class<?>> classes = new HashSet<Class<?>>();
          for (Class<?> cl = d.getClass(); cl != null; cl = cl.getSuperclass())
              classes.addAll(Arrays.asList(cl.getInterfaces()));
          
          return Proxy.newProxyInstance(jdbcDriverLoader,
                                        classes.toArray(new Class[classes.size()]),
                                        tracer);
      }
docs: Enable supplemental tracing for the underlying data source or java.sql.Driver.
  
  @param d the underlying data source or driver.
  
  @return a data source or driver enabled for supplemental trace.
  @throws ResourceException if an error occurs obtaining the print writer.