// NamedObj container = (NamedObj)object.getContainer();
TypedCompositeActor model = (TypedCompositeActor) GiottoCodeGenerator.this
.getContainer();
// Preinitialize and resolve types.
CompositeActor toplevel = (CompositeActor) model.toplevel();
Manager manager = toplevel.getManager();
if (manager == null) {
manager = new Manager(toplevel.workspace(), "manager");
toplevel.setManager(manager);