docs: @Override
  	public void pauseScan() {
  		lock.lock();
  		try {
  			if (State.RUNNING.equals(state)) {
  				spiderThread.pauseScan();
  				state = State.PAUSED;
  				SpiderEventPublisher.publishScanEvent(
  						ScanEventPublisher.SCAN_PAUSED_EVENT, this.scanId);
  			}
  		} finally {
  			lock.unlock();
  		}
  	}