//
// Enhance the class by placing a GetCachingMethodInterceptor
// intercepter on all the getter and setter methods.
final Class newClazz = (Class) beanGenerator.createClass();
final Callback[] callbacks = new Callback[] { new GetCachingMethodInterceptor(clazz.newInstance()), NoOp.INSTANCE };
return (ConnectionFactory) Enhancer.create(newClazz, new Class[] { ConnectionFactory.class, QueueConnectionFactory.class, TopicConnectionFactory.class }, new CallbackFilter() {
public int accept(Method m) {