docs: protected GroovyCodeSource getScriptSource(boolean isScriptFile, String script) throws IOException, URISyntaxException {
          //check the script is currently valid before starting a server against the script
          if (isScriptFile) {
              // search for the file and if it exists don't try to use URIs ...
              File scriptFile = huntForTheScriptFile(script);
              if (!scriptFile.exists() && URI_PATTERN.matcher(script).matches()) {
                  return new GroovyCodeSource(new URI(script));
              }
              return new GroovyCodeSource( scriptFile );
          }
          return new GroovyCodeSource(script, "script_from_command_line", GroovyShell.DEFAULT_CODE_BASE);
      }