throw new IllegalArgumentException("Compiler configuration is null.");
}
if (urls == null) {
throw new IllegalArgumentException("URL collection is null.");
}
CompilerFactory compilerFactory = new DefaultGroovyCompilerFactory(config);
TopCodeCacheFactory topCodeCacheFactory = new DefaultTopCodeCacheFactory(compilerFactory);
Engine engine = new LayeredEngine.Builder().setTopCodeCacheFactory(topCodeCacheFactory).build();
SourceFactory sourceFactory = new DefaultSourceFactory.Builder().setTrackUrlContent(true).build();
Set<Source> sourceSet = SourceUtil.urlsToSourceSet(sourceFactory, urls);
Sources sources = new FixedSetSources.Builder(sourceSet)