public static void main(String args[]) {
        try {
            CommandLineParser clp = new CommandLineParser(args);

            String projectFileName = clp.getParamValue("projectFile");
            if (projectFileName == null) {
                System.out.println("missing projectFile argument");
                return;
            }

            Project project = new Project();
            project.load(projectFileName);

            generate(project);
        } catch (SAXException | IOException | DOMException | ProjectFormatException | ClassNotFoundException ex) {
            ex.printStackTrace();
        }
        System.exit(0);
    }