code: protected void defineManagedResource()
      {
          super.defineManagedResource();
  
          defineAttribute("displayName",false);
          defineAttribute("defaultsDescriptor",true);
          defineAttribute("WAR",true);
          defineAttribute("extractWAR",true);
          _webappContext=(WebApplicationContext)getManagedResource();
          _webappContext.addEventListener(new LifeCycleListener()
                  {
  
                      public void lifeCycleStarting (LifeCycleEvent event)
                      {}
                      
                      public void lifeCycleStarted (LifeCycleEvent event)
                      {
                          getConfigurations();
                      }
  
                      public void lifeCycleFailure (LifeCycleEvent event)
                      {}
  
                      public void lifeCycleStopping (LifeCycleEvent event)
                      {}
  
                      public void lifeCycleStopped (LifeCycleEvent event)
                      {
                          destroyConfigurations();
                      }
              
                  });
      }
docs: /* ------------------------------------------------------------