code: public void setClassLoader(GroovyClassLoader loader) {
          ClassLoader parent = Thread.currentThread().getContextClassLoader();
          if (parent == null) parent = ProcessingUnit.class.getClassLoader();
          this.classLoader = (loader == null ? new GroovyClassLoader(parent, configuration) : loader);
      }
docs: Sets the class loader for use by this ProcessingUnit.