private void lockBuffer() throws IOException {
      if (isSharedBuffer) {
        return;
      }
      if (bufferWrapper == null) {
        bufferWrapper = getStorage().getByteBuffer(address, false);
      }
      else {
        if (!cacheBuffer) {
          if (!bufferWrapper.tryLock()) {
            bufferWrapper = getStorage().getByteBuffer(address, false);
          }
        }
      }
    }
private void lockBuffer()