private void notifyResourceEventListeners(ResourceEvent event,Object resource){
  for (Iterator<ResourceEventsListener> iter=resourceListeners.iterator(); iter.hasNext(); ) {
    try {
      ResourceEventsListener listener=(ResourceEventsListener)iter.next();
      listener.handleEvent(event,resource);
    }
 catch (    CancelException e) {
    }
catch (    GemFireSecurityException|ManagementException ex) {
      if (event == ResourceEvent.CACHE_CREATE) {
        throw ex;
      }
 else {
        logger.warn(ex.getMessage(),ex);
      }
    }
catch (    Exception err) {
      logger.warn(err.getMessage(),err);
    }
catch (    VirtualMachineError e) {
      SystemFailure.initiateFailure(e);
      throw e;
    }
catch (    Throwable t) {
      SystemFailure.checkFailure();
      logger.warn(t.getMessage(),t);
    }
  }
}

private void notifyResourceEventListeners ( ResourceEvent event , Object resource ) { for ( Iterator < ResourceEventsListener > iter = resourceListeners . iterator ( ) ; iter . hasNext ( ) ; ) { try { ResourceEventsListener listener = ( ResourceEventsListener ) iter . next ( ) ; listener . handleEvent ( event , resource ) ; } catch ( CancelException e ) { } catch ( GemFireSecurityException | ManagementException ex ) { if ( event == ResourceEvent . CACHE_CREATE ) { throw ex ; } else { logger . warn ( ex . getMessage ( ) , ex ) ; } } catch ( Exception err ) { logger . warn ( err . getMessage ( ) , err ) ; } catch ( VirtualMachineError e ) { SystemFailure . initiateFailure ( e ) ; throw e ; } catch ( Throwable t ) { SystemFailure . checkFailure ( ) ; logger . warn ( t . getMessage ( ) , t ) ; } } }
notifies all resource event listeners . all exceptions are caught here and only a warning message is printed in the log
