private GroovyClassLoader initGroovyLoader() {
        GroovyClassLoader groovyClassLoader =
                AccessController.doPrivileged(new PrivilegedAction<ScriptClassLoader>() {
                    public ScriptClassLoader run() {
                        if (parentLoader instanceof GroovyClassLoader) {
                            return new ScriptClassLoader((GroovyClassLoader) parentLoader);
                        } else {
                            return new ScriptClassLoader(parentLoader, config);
                        }
                    }
                });
        for (URL root : roots) groovyClassLoader.addURL(root);
        return groovyClassLoader;
    }
private GroovyClassLoader initGroovyLoader ( ) { GroovyClassLoader groovyClassLoader = AccessController . doPrivileged ( new PrivilegedAction < ScriptClassLoader > ( ) { public ScriptClassLoader run ( ) { if ( parentLoader instanceof GroovyClassLoader ) { return new ScriptClassLoader ( ( GroovyClassLoader ) parentLoader ) ; } else { return new ScriptClassLoader ( parentLoader , config ) ; } } } ) ; for ( URL root : roots ) groovyClassLoader . addURL ( root ) ; return groovyClassLoader ; }
Initialize a new GroovyClassLoader with a default or
constructor-supplied parentClassLoader.

@return the parent classloader used to load scripts