if (proxy == null) {
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(connectionFactoryInterface);
enhancer.setCallbackType(net.sf.cglib.proxy.MethodInterceptor.class);
enhancer.setUseFactory(false);//????
interceptor = new ConnectorMethodInterceptor(kernel.getKernelName(), ObjectName.getInstance(objectName));
enhancer.setCallbacks(new Callback[]{interceptor});
proxy = enhancer.create(new Class[0], new Object[0]);
}
//connect proxy
interceptor.setInternalProxy(connectionFactory);