OK, I think I know the problem you had. You inject the factory into the module, but the factory is a singleton, so you get the same thing injected into the acgh module and the new module. But the solution there is to change the scope of the bean to prototype (`@Scope('prototype')`).