docs: public static Class parseClass(String groovySource) throws GroovyException {
  
          GroovyClassLoader loader = new GroovyClassLoader();
  
          ClassLoader contextClassLoader = null;
  
          try {
              contextClassLoader = Thread.currentThread().getContextClassLoader();
              if (contextClassLoader != null) {
                  Thread.currentThread().setContextClassLoader(null);
              }
              return loader.parseClass(groovySource);
          } catch (Throwable t) {
              throw new GroovyException("parseClass error:", t);
          } finally {
              if (contextClassLoader != null) {
                  Thread.currentThread().setContextClassLoader(contextClassLoader);
              }
          }
      }