@Override
  public void reset(Charset charset) {
    myLock.lock();
    try {
      notUpdatedPagesCash.clear();
      fileAdapter.setCharset(charset);
    }
    finally {
      myLock.unlock();
    }
  }
@Override
  public void reset(Charset charset)