public static StringWrapper normalizeConnectionArgument(Stella_Object arg) {
    { Surrogate testValue000 = Stella_Object.safePrimaryType(arg);

      if (Surrogate.subtypeOfStringP(testValue000)) {
        { StringWrapper arg000 = ((StringWrapper)(arg));

          if (Logic.nullWrapperP(arg000)) {
            return (null);
          }
          else {
            return (arg000);
          }
        }
      }
      else if (Surrogate.subtypeOfIntegerP(testValue000)) {
        { IntegerWrapper arg000 = ((IntegerWrapper)(arg));

          if (Logic.nullWrapperP(arg000)) {
            return (null);
          }
          else {
            return (StringWrapper.wrapString(Native.integerToString(((long)(arg000.wrapperValue)))));
          }
        }
      }
      else if (Surrogate.subtypeOfP(testValue000, RDBMS.SGT_LOGIC_LOGIC_OBJECT)) {
        { LogicObject arg000 = ((LogicObject)(arg));

          return (StringWrapper.wrapString(edu.isi.powerloom.PLI.getName(arg000)));
        }
      }
      else {
        return (null);
      }
    }
  }