code: public GroovyClassLoader createGroovyClassLoader(final ClassLoader classLoader, final ResourceLoader resourceLoader) {
      return AccessController.doPrivileged(new PrivilegedAction<GroovyClassLoader>()
      {
        @Override
        public GroovyClassLoader run() {
          GroovyClassLoader gcl = new GroovyClassLoader(classLoader);
          gcl.setResourceLoader(createGroovyResourceLoader(resourceLoader));
          return gcl;
        }
      });
    }
docs: Create a {@link GroovyClassLoader} from given {@link ClassLoader} and {@link ResourceLoader}.