public static SystemDefinition getSystemDefinition(String name) {
    { SystemDefinition value000 = null;

      { SystemDefinition s = null;
        Cons iter000 = Stella.$SYSTEMDEFINITIONS$.theConsList;

        loop000 : for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          s = ((SystemDefinition)(iter000.value));
          if (Stella.stringEqualP(s.name, name)) {
            value000 = s;
            break loop000;
          }
        }
      }
      { SystemDefinition system = value000;

        if (system == null) {
          { String systemfilename = Stella.makeSystemDefinitionFileName(name);

            if (!Stella.probeFileP(systemfilename)) {
              {
                Stella.STANDARD_ERROR.nativeStream.println("ERROR>> File " + systemfilename + " does not exist.");
                Stella.STANDARD_ERROR.nativeStream.println("   Can't define system " + name);
              }
;
              return (null);
            }
            Stella.loadFile(systemfilename);
            { SystemDefinition value001 = null;

              { SystemDefinition s = null;
                Cons iter001 = Stella.$SYSTEMDEFINITIONS$.theConsList;

                loop001 : for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) {
                  s = ((SystemDefinition)(iter001.value));
                  if (Stella.stringEqualP(s.name, name)) {
                    value001 = s;
                    break loop001;
                  }
                }
              }
              system = value001;
            }
            if (system == null) {
              {
                Stella.STANDARD_ERROR.nativeStream.println("ERROR>>  Can't find a system definition for system " + name);
                Stella.STANDARD_ERROR.nativeStream.println("   within file " + systemfilename + ".");
              }
;
            }
          }
        }
        return (system);
      }
    }
  }