Removed keepLock field and releaseDocument from RemotePipeline