@Override
public synchronized IScanInstance createNewScanInstance() {
synchronized(scanInstanceLock) {
final long scanId = allocateNewScanId();
final IScanInstance scan = createScanInstanceForScanId(scanId);
scanInstanceEventManager.fireEvent(new NewScanInstanceEvent(scan));
return scan;
}
}