Access to the container from a factory method

Hello, I’ve just extended the ProductFactory class with a custom method following the tutorial.

I need to access to the container from this method (like using $this->container-> and so on…), because I want to add some product attributes to the product programmatically.

How can I do it?

Thank you!