@Override ObservedObject createObservedObject(ObjectName object){
  final CounterMonitorObservedObject cmo=new CounterMonitorObservedObject(object);
  cmo.setThreshold(initThreshold);
  cmo.setModulusExceeded(false);
  cmo.setEventAlreadyNotified(false);
  cmo.setPreviousScanCounter(null);
  return cmo;
}

@ Override ObservedObject createObservedObject ( ObjectName object ) { final CounterMonitorObservedObject cmo = new CounterMonitorObservedObject ( object ) ; cmo . setThreshold ( initThreshold ) ; cmo . setModulusExceeded ( false ) ; cmo . setEventAlreadyNotified ( false ) ; cmo . setPreviousScanCounter ( null ) ; return cmo ; }
factory method for observedobject creation .
