}
ProxyFactory factory = new ProxyFactory();
factory.setSuperclass( type==JAVA_BEAN ? beanClass : Object.class );
factory.setInterfaces( interfaces.toArray( new Class[0] ) );
factory.setFilter(FINALIZE_FILTER);
return factory.createClass();
}
private static final MethodFilter FINALIZE_FILTER = new MethodFilter()
{
public boolean isHandled(Method method)