private boolean allowNotificationEmission(ObjectName name,TargetedNotification tn){
  try {
    if (checkNotificationEmission) {
      checkMBeanPermission(name,"addNotificationListener");
    }
    if (notificationAccessController != null) {
      notificationAccessController.fetchNotification(connectionId,name,tn.getNotification(),getSubject());
    }
    return true;
  }
 catch (  SecurityException e) {
    if (logger.debugOn()) {
      logger.debug("fetchNotifs","Notification " + tn.getNotification() + " not forwarded: the "+ "caller didn't have the required access rights");
    }
    return false;
  }
catch (  Exception e) {
    if (logger.debugOn()) {
      logger.debug("fetchNotifs","Notification " + tn.getNotification() + " not forwarded: "+ "got an unexpected exception: "+ e);
    }
    return false;
  }
}

private boolean allowNotificationEmission ( ObjectName name , TargetedNotification tn ) { try { if ( checkNotificationEmission ) { checkMBeanPermission ( name , "addNotificationListener" ) ; } if ( notificationAccessController != null ) { notificationAccessController . fetchNotification ( connectionId , name , tn . getNotification ( ) , getSubject ( ) ) ; } return true ; } catch ( SecurityException e ) { if ( logger . debugOn ( ) ) { logger . debug ( "fetchNotifs" , "Notification " + tn . getNotification ( ) + " not forwarded: the " + "caller didn't have the required access rights" ) ; } return false ; } catch ( Exception e ) { if ( logger . debugOn ( ) ) { logger . debug ( "fetchNotifs" , "Notification " + tn . getNotification ( ) + " not forwarded: " + "got an unexpected exception: " + e ) ; } return false ; } }
check if the caller has the right to get the following notifications .
