public static Stella_Object nameToObjectComputation(Stella_Object namearg) {
    { Object old$Module$000 = Stella.$MODULE$.get();
      Object old$Context$000 = Stella.$CONTEXT$.get();

      try {
        Native.setSpecial(Stella.$MODULE$, ((Context)(Stella.$CONTEXT$.get())).baseModule);
        Native.setSpecial(Stella.$CONTEXT$, ((Module)(Stella.$MODULE$.get())));
        if (!Stella_Object.stringP(namearg)) {
          { Stella_Object instance = Logic.getInstance(namearg);

            if (instance != null) {
              return (instance);
            }
          }
        }
        { String nameargstring = edu.isi.powerloom.PLI.objectToString(namearg);
          Surrogate instancename = Surrogate.lookupSurrogate(nameargstring);

          { Stella_Object temp000 = Logic.getInstance(instancename);

            { Stella_Object value000 = ((temp000 != null) ? temp000 : Logic.createLogicInstance(Surrogate.internSurrogateInModule(nameargstring, ((Module)(Stella.$MODULE$.get())), true), null));

              return (value000);
            }
          }
        }

      } finally {
        Stella.$CONTEXT$.set(old$Context$000);
        Stella.$MODULE$.set(old$Module$000);
      }
    }
  }