docs: protected HasInputStream synchStream(final Path path, final HasInputStream stream) {
          return new HasInputStream() {
              @Override
              public InputStream getInputStream() throws IOException {
                  ByteArrayOutputStream bytes = new ByteArrayOutputStream();
                  writeContent(bytes);
                  return new ByteArrayInputStream(bytes.toByteArray());
              }
  
              @Override
              public long writeContent(OutputStream outputStream) throws IOException {
                  synchronized (pathSynch(path)) {
                      return stream.writeContent(outputStream);
                  }
              }
          };
  
      }