private void endLocalWrite(EntryEventImpl event){
  if (!needWriteLock(event)) {
    return;
  }
  doUnlockForPrimary();
  Object keys[]=new Object[1];
  keys[0]=event.getKey();
  removeAndNotifyKeys(keys);
}

private void endLocalWrite ( EntryEventImpl event ) { if ( ! needWriteLock ( event ) ) { return ; } doUnlockForPrimary ( ) ; Object keys [ ] = new Object [ 1 ] ; keys [ 0 ] = event . getKey ( ) ; removeAndNotifyKeys ( keys ) ; }
release the lock on the bucket that makes the bucket stay the primary during a write .
