void freeWriteLock(){
synchronized (WRITE_LOCK) {
    isWriteLocked=false;
    WRITE_LOCK.notifyAll();
  }
}

void freeWriteLock ( ) { synchronized ( WRITE_LOCK ) { isWriteLocked = false ; WRITE_LOCK . notifyAll ( ) ; } }
frees the channel for writing .
