code: public Script parse(final GroovyCodeSource codeSource) throws CompilationFailedException {
          return InvokerHelper.createScript(parseClass(codeSource), context);
      }
docs: Parses the given script and returns it ready to be run.  When running in a secure environment
  (-Djava.security.manager) codeSource.getCodeSource() determines what policy grants should be
  given to the script.
  
  @param codeSource
  @return ready to run script