We are searching for an include mechanism for groovy scripts to have space for cross-cutting-concerns.
In my example we have, web service endpoints as groovy scripts and want to log to our web service protocol. for that we use our implicit object (getting from our framework) to create the logging statement.
But this is boilerplate code if we code this in every web service endpoint.
We are searching for something like include() in php, that includes other groovy scripts, are there any ideas how to do this?