The wrapper generator should not depend on isDerivedObject; it should generate a wrapper that takes a bool isDerivedObject instead.