This post has NOT been accepted by the mailing list yet.
That's brilliant! I've resolved it by returning 0 if it's null (from project specification tenantId cannot have value 0) and I added an filter which depends on the one provided from plugin. I have there a redirect function available so i do just
redirect( url: urlFromConfig )
Thank you. BTW is there a way to get a response object in library class?