checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN);    if (applies(IdUniquenessPolicyValue.UNIQUE_ID)) { AOM.Obj sx = aom.findServant(a_servant, false); if (sx != null) throw new ServantAlreadyActive(); }  AOM.Obj exists = aom.get(an_Object_Id); if (exists != null) { if (exists.servant == null) { locateServant(an_Object_Id, a_servant, exists, use_forwarding); exists.setDeactivated(false); } else if (exists.isDeactiveted()) { exists.setDeactivated(false); incarnate(exists, an_Object_Id, a_servant, use_forwarding); } else throw new ObjectAlreadyActive(); } else { ServantDelegateImpl delegate = new ServantDelegateImpl(a_servant, this, an_Object_Id); create_and_connect(an_Object_Id, a_servant._all_interfaces(this, an_Object_Id)[0], delegate); }
activate_object_with_id(an_Object_Id, a_servant, false);
  public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant,    boolean use_forwarding)    throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy  {    checkDiscarding();    required(ServantRetentionPolicyValue.RETAIN);    // If the UNIQUE_ID applies, the servant being passed must not be    // already active.    if (applies(IdUniquenessPolicyValue.UNIQUE_ID))      {        AOM.Obj sx = aom.findServant(a_servant, false);        if (sx != null)          throw new ServantAlreadyActive();      }    AOM.Obj exists = aom.get(an_Object_Id);    if (exists != null)      {        if (exists.servant == null)          {            locateServant(an_Object_Id, a_servant, exists, use_forwarding);            exists.setDeactivated(false);          }        else if (exists.isDeactiveted())          {            exists.setDeactivated(false);            incarnate(exists, an_Object_Id, a_servant, use_forwarding);          }        else          throw new ObjectAlreadyActive();      }    else      {        ServantDelegateImpl delegate = new ServantDelegateImpl(a_servant, this,          an_Object_Id);        create_and_connect(an_Object_Id, a_servant._all_interfaces(this,          an_Object_Id)[0], delegate);      }  }