enhancer.setInterfaces(interfaces);
enhancer.setCallbackTypes(
new Class[] {MethodInterceptor.class, LazyLoader.class});
enhancer.setUseFactory(false);
enhancer.setCallbacks(new Callback[] {endPointCB,
new LazyLoader() {
public Object loadObject() throws Exception {
throw new UnsupportedOperationException("Empty local half.");
}
}});
enhancer.setCallbackFilter(new HOPPFilter(interfaces));