if (isProxyable) {
Enhancer enhancer = new Enhancer();
enhancer.setInterfaces(allImplementedInterfaces);
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]);
} else {
proxy = connectionFactory;
}