throw new MARSHAL("Factory for " + official_type.id() + " not registered." );
{ MARSHAL m = new MARSHAL("Factory for " + official_type.id() + " not registered."); m.minor = Minor.Factory; throw m; }
  public Any to_any()  {    if (isNull)      {        Any a0 = createAny();        a0.type(orb.get_primitive_tc(TCKind.tk_null));        return a0;      }    else      {        try          {            ValueFactory factory =              ((org.omg.CORBA_2_3.ORB) orb).lookup_value_factory(official_type.id());            if (factory == null)              throw new MARSHAL("Factory for " + official_type.id() +                                " not registered."                               );            OutputStream out = orb.create_output_stream();            for (int i = 0; i < array.length; i++)              array [ i ].to_any().write_value(out);            org.omg.CORBA_2_3.portable.InputStream in =              (org.omg.CORBA_2_3.portable.InputStream) out.create_input_stream();            Serializable v = factory.read_value(in);            Any g = createAny();            g.type(official_type);            g.insert_Value(v, official_type);            return g;          }        catch (Exception e)          {            throw new Unexpected(e);          }      }  }