}
} else {
//We need to generate a class that implements the interfaces (if any) and
//has the classToProxy as a superclass
if((classToProxy.getModifiers() & Modifier.FINAL) != 0) {
throw new UnableToProxyException(classToProxy, "The class " + classToProxy
+ " does not implement all of the interfaces " + interfaces +
" and is final. This means that we cannot create a proxy for both the class and all of the requested interfaces.");
}
proxyObject = InterfaceProxyGenerator.getProxyInstance(clientBundle,
classToProxy, interfaces, dispatcher, listener);