try {
clearImport();
startReceivingServices();
Set<String> rootPaths = getRootPaths(paths);
for (String path : rootPaths) {
Files.walkFileTree(Paths.get(path), new LibraryScanner(libraryPresenceChannel));
}
if (isRootPaths) {
libraryPresenceChannel.send(msg(null, rootPaths, new HashSet<File>()));
}
libraryPresenceChannel.send(FINISHED_MESSAGE);