code: public boolean deactivate() throws Exception
     {
        if (activated)
        {
           if (!activeEndpoints.isEmpty())
              throw new Exception("Still active endpoints");
  
           resourceAdapter.stop();
           ((CloneableBootstrapContext) bc).shutdown();
           activated = false;
           return true;
        }
  
        return false;
     }
docs: {@inheritDoc}