code: public String getText(String uriOrFilename) throws IOException {
          if (uriPattern.matcher(uriOrFilename).matches()) {
              try {
                  return ResourceGroovyMethods.getText(new URL(uriOrFilename));
              } catch (Exception e) {
                  throw new GroovyRuntimeException("Unable to get script from URL: ", e);
              }
          }
          return ResourceGroovyMethods.getText(huntForTheScriptFile(uriOrFilename));
      }
docs: Get the text of the Groovy script at the given location.
  If the location is a file path and it does not exist as given,
  then {@link GroovyMain#huntForTheScriptFile(String)} is called to try
  with some Groovy extensions appended.
  
  This method is not used to process scripts and is retained for backward
  compatibility.  If you want to modify how GroovyMain processes scripts
  then use {@link GroovyMain#getScriptSource(boolean, String)}.
  
  @param uriOrFilename
  @return the text content at the location
  @throws IOException
  @deprecated