// Add a wrapper that checks for recursion.
creator = new RecursiveServiceCreationCheckWrapper(def, creator, logger);
JustInTimeObjectCreator delegate = new JustInTimeObjectCreator(_tracker, creator, serviceId);
Object proxy = createProxy(resources, delegate);
_registry.addRegistryShutdownListener(delegate);