public static void main(String[] args) {
		try {
			 UIManager.setLookAndFeel(
			            UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (InstantiationException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IllegalAccessException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (UnsupportedLookAndFeelException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		File inputFile = null;
	    if(args.length > 0) {
	    	inputFile = new File(args[0]);
	    	if(! inputFile.exists()) {
	    		inputFile = openDialog();
	    	}
	    } else {
	    	inputFile = openDialog();
	    }
	    logger.debug("Selected SQM Mission: " + inputFile.getAbsolutePath());
		Arma2MapConverter a2mc = new Arma2MapConverter();
		SQM sqm = a2mc.openSQM(inputFile);
		SQF sqf = sqm.toSQF();
	    

		File outputFile = null;
	    if(args.length > 1) {
	    	outputFile = new File(args[1]);
	    	if(! outputFile.exists()) {
	    		outputFile = saveDialog();
	    	}
	    } else {
	    	outputFile = saveDialog();
	    }
	    logger.debug("Selected SQF File: " + outputFile.getAbsolutePath());
		try {
			sqf.save(outputFile);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			logger.error("Could not write to output file: " + e.getLocalizedMessage(), e);
		}		
	}