activeObjectMap.Obj ref = null;
AOM.Obj ref = null;
  public byte[] servant_to_id(Servant the_Servant)                       throws ServantNotActive, WrongPolicy  {    if (applies(RequestProcessingPolicyValue.USE_DEFAULT_SERVANT) ||        applies(ServantRetentionPolicyValue.RETAIN) &&        (          applies(IdUniquenessPolicyValue.UNIQUE_ID) ||          applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION)        )       )      {        activeObjectMap.Obj ref = null;        if (!applies(IdUniquenessPolicyValue.MULTIPLE_ID))          ref = aom.findServant(the_Servant);        if (ref == null &&            applies(ImplicitActivationPolicyValue.IMPLICIT_ACTIVATION)           )          {            // Try to activate.            try              {                return activate_object(the_Servant);              }            catch (ServantAlreadyActive ex)              {                // Either it shuld not be or the policy allows multiple ids.                throw new InternalError();              }          }        if (ref == null)          throw new ServantNotActive();        else          return ref.key;      }    else      throw new WrongPolicy("(RETAIN and UNIQUE ID) " +                            "or USE_DEFAULT_SERVANT required."                           );  }