private void checkResourceChange(final Resource resource,final Group group,final Callback callback,final AtomicBoolean isChanged) throws Exception {
  if (isChanged(resource,group.getName())) {
    isChanged.compareAndSet(false,true);
    callback.onResourceChanged(resource);
    lifecycleCallback.onResourceChanged(resource);
  }
}

private void checkResourceChange ( final Resource resource , final Group group , final Callback callback , final AtomicBoolean isChanged ) throws Exception { if ( isChanged ( resource , group . getName ( ) ) ) { isChanged . compareAndSet ( false , true ) ; callback . onResourceChanged ( resource ) ; lifecycleCallback . onResourceChanged ( resource ) ; } }
will check if a given resource was changed and will invoke the appropriate callback .
