throw new WrongAdapter();
{ String object; if (the_Object == null) object = "null passed"; else if (the_Object instanceof gnuServantObject) { gnuServantObject gs = (gnuServantObject) the_Object; object = "Wrong owner POA " + gs.poa.the_name(); } else object = "Unknown " + the_Object.getClass().getName();  throw new WrongAdapter(object + " for '" + the_name() + "'"); }
  public Servant reference_to_servant(org.omg.CORBA.Object the_Object)                               throws ObjectNotActive, WrongPolicy,                                      WrongAdapter  {    if (applies(ServantRetentionPolicyValue.RETAIN))      {        AOM.Obj ref = aom.findObject(the_Object);        if (ref == null)          throw new WrongAdapter();        else if (ref.isDeactiveted() || ref.servant == null)          {            if (default_servant != null)              return default_servant;            else              throw new ObjectNotActive();          }        else          return ref.servant;      }    else if (default_servant != null)      {        return default_servant;      }    else      throw new WrongPolicy("Either RETAIN or USE_DEFAULT_SERVANT required.");  }