}
if (superClass != null) {
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(superClass);
enhancer.setInterfaces(theInterfaces.toArray(new Class[]{}));
enhancer.setCallback(new MethodInterceptor() {
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy)
throws Throwable {
return h.invoke(obj, method, args);
}