if (!source.exists()) {
log.severe("Source '" + source.getAbsolutePath() + "' does not exist; stopping.");
System.exit(10);
}
BaseNavigationFormat format = findFormat(args[1]);
if (format == null) {
log.severe("Format '" + args[1] + "' does not exist; stopping.");
logFormatNames(getWriteFormatsSortedByName());
System.exit(12);
}
String baseName = removeExtension(args[2]);
File target = absolutize(new File(baseName + format.getExtension()));
if (target.exists()) {
log.severe("Target '" + target.getAbsolutePath() + "' already exists; stopping.");
System.exit(13);
}