The issue was inside the ProcessGroup function, there was still a reference to the injected context instead of the generated one.