public static Stella_Object createLogicInstance(Surrogate name, Surrogate type) {
    try {
      return (Logic.helpCreateLogicInstance(name, type));
    } catch (UndefinedClassException undefined) {
      System.out.println("`" + Stella.exceptionMessage(undefined) + "'");
      return (null);
    } catch (ObjectNotClassException noClass) {
      System.out.println("`" + Stella.exceptionMessage(noClass) + "'");
      return (null);
    } catch (BadArgumentException badArg) {
      System.out.println("`" + Stella.exceptionMessage(badArg) + "'");
      return (null);
    } catch (ObjectAlreadyExistsException exists) {
      {
        System.out.println(Stella.exceptionMessage(exists));
        System.out.println("Redefining the surrogate " + name.symbolName + " will cause the existing");
        System.out.print("   object named " + name.symbolName + " to be destroyed. ");
      }
;
      if (Stella.yOrNP("Do it? ")) {
        {
          Logic.destroyInstance(exists.existingObject);
          return (Logic.helpCreateLogicInstance(name, type));
        }
      }
      else {
        {
          System.out.println("Returning existing object:");
          return (exists.existingObject);
        }
      }
    }
  }