/**
   * Create the TaggedComponent typecode (structure, named "TaggedComponent"). The typecode states
   * that the structure contains the following fields: tag, component_data.
   */
  public static TypeCode type() {
    if (typeCode == null) {
      ORB orb = ORB.init();
      StructMember[] members = new StructMember[2];

      TypeCode field;

      field =
          orb.create_alias_tc(
              "IDL:omg.org/IOP/ComponentId:1.0",
              "ComponentId",
              orb.get_primitive_tc(TCKind.tk_ulong));
      members[0] = new StructMember("tag", field, null);

      field = orb.create_sequence_tc(0, orb.get_primitive_tc(TCKind.tk_octet));
      members[1] = new StructMember("component_data", field, null);
      typeCode = orb.create_struct_tc(id(), "TaggedComponent", members);
    }
    return typeCode;
  }
 /** Return an alias typecode. */
 public static TypeCode type() {
   ORB orb = Restricted_ORB.Singleton;
   return orb.create_alias_tc(id(), "FieldName", orb.create_string_tc(0));
 }