/** Deactivate the listeners. */
 private void deleteLayersModelRootNotifier() {
   /**
    * Listen on layersModel to be inform when the application object is created. When it is
    * created, we can listen on it.
    */
   if (layersModelEventRootNotifier != null) {
     layersModelEventRootNotifier.removeEventListener(
         layersStackApplicationLifeCycleEventListener);
     layersModelEventRootNotifier.dispose();
     layersModelEventRootNotifier = null;
   }
 }
  /**
   * Remove the specified listener from the list of listeners.
   *
   * @param listener
   */
  public void removeLayersStackApplicationLifeCycleEventListener(
      ILayersModelRootEventListener listener) {

    layersModelEventRootNotifier.removeEventListener(listener);
  }