Enhancer e = new Enhancer();
e.setNamingPolicy(NAMING_POLICY);
e.setInterfaces(getInterfaces(delegate.getClass(), def));
e.setCallback(callback);
e.setClassLoader(ProxyFactory.class.getClassLoader());
return e.create();
}
/**
* Gets the real Statement that we got from the delegate driver. This is no longer
* necessary and only provided for backwards compatability.