code: public void endpointDeactivation(MessageEndpointFactory mef, ActivationSpec as) throws Exception
     {
        if (mef == null)
           throw new Exception("MessageEndpointFactory is null");
  
        if (as == null)
           throw new Exception("ActivationSpec is null");
  
        Endpoint e = new Endpoint(mef, as);
        InflowRecovery ir = activeEndpoints.get(e);
  
        if (ir != null)
           ir.deactivate();
        
        try
        {
           resourceAdapter.endpointDeactivation(mef, as);
        }
        finally
        {
           activeEndpoints.remove(e);
        }
     }
docs: {@inheritDoc}