public static void plguiWriteUrl(org.powerloom.PrintableStringWriter stream, String action, String objecttype, StandardObject renamed_Object) {
    { Surrogate testValue000 = Stella_Object.safePrimaryType(renamed_Object);

      if (Surrogate.subtypeOfP(testValue000, GuiServer.SGT_LOGIC_LOGIC_OBJECT)) {
        { LogicObject object000 = ((LogicObject)(renamed_Object));

          { Module writemodule = object000.homeModule();

            GuiServer.plguiWriteUrlInDetail(stream, null, action, objecttype, writemodule.name(), Logic.objectStringName(object000), Logic.objectStringName(object000), false);
          }
        }
      }
      else if (Surrogate.subtypeOfP(testValue000, GuiServer.SGT_STELLA_MODULE)) {
        { Module object000 = ((Module)(renamed_Object));

          GuiServer.plguiWriteUrlInDetail(stream, null, action, objecttype, object000.name(), object000.name(), object000.name(), false);
        }
      }
      else {
        System.out.print(Stella.STANDARD_ERROR + "Don't know how to write URL for object" + renamed_Object);
        stream.print(renamed_Object);
      }
    }
    return;
  }