code: public static Connection newInstance(Connection conn) {
          return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class},
                  new ConnectionProxy(conn));
          /*
          return (Connection) java.lang.reflect.Proxy.newProxyInstance(conn.getClass().getClassLoader(), conn.getClass().getInterfaces(),
                  new ConnectionProxy(conn));
                  */
      }
docs: Creates new SQL Connection Proxy instance
  
  @param conn SQL Connection
  @return Proxy SQL Connection