public function removeFile(FileInfo $file)
{
if (!isset($this->collection[$file->getRealPath()])) {
throw new SourceCollectionException(sprintf("File %s not found in collection", $file->getRealPath()), SourceCollectionException::SourceNotFound);
}
unset($this->collection[$file->getRealPath()]);
}