[#2283] Class loading issues in GenerationTool when called by Gradle -
Allow for setting ClassLoader and/or Connection externally