Thank you, Community, a lot of great advice pieces in this thread.
@rajs2020 Does the latest suggestion by nmrao help?
I gave up on this and moved to other work. So, I'll close this thread.
You can also use Events like TestSuiteRunListener.beforeRun
I use it for example to add the Testsuite to Testrail before starting the tests.