static void validateRefreshTimer(){
  if (refreshTimerObjectName == null || refreshTimer == null) {
    createRefreshTimer();
  }
  raiseOnFailure(refreshTimer != null,"Failed to validate Refresh Timer");
  if (mbeanServer != null && !mbeanServer.isRegistered(refreshTimerObjectName)) {
    try {
      mbeanServer.registerMBean(refreshTimer,refreshTimerObjectName);
    }
 catch (    JMException e) {
      logStackTrace(Level.WARN,e);
    }
catch (    JMRuntimeException e) {
      logStackTrace(Level.WARN,e);
    }
  }
}

static void validateRefreshTimer ( ) { if ( refreshTimerObjectName == null || refreshTimer == null ) { createRefreshTimer ( ) ; } raiseOnFailure ( refreshTimer != null , "Failed to validate Refresh Timer" ) ; if ( mbeanServer != null && ! mbeanServer . isRegistered ( refreshTimerObjectName ) ) { try { mbeanServer . registerMBean ( refreshTimer , refreshTimerObjectName ) ; } catch ( JMException e ) { logStackTrace ( Level . WARN , e ) ; } catch ( JMRuntimeException e ) { logStackTrace ( Level . WARN , e ) ; } } }
validates refreshtimer has been registered without problems and attempts to re - register if there is a problem .
