private static void verifyAntBuildFile(File currentFolder, PackDetails packDetails)
            throws ParserConfigurationException, SAXException, IOException {
        File antFile = new File(currentFolder, "build.xml");
        System.out.println("Verifying ANT build file for validity...");
        SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
        parser.parse(antFile, new DefaultHandler() {
            @Override
            public void startElement(String uri, String localName, String qName,
                    Attributes attributes) throws SAXException {
                super.startElement(uri, localName, qName, attributes);
                if (qName.equals("project")) {
                    if (attributes.getValue("name").equals("LanguagePack")) {
                        throw new InvalidPackConfiguration("build.xml",
                                "The name of the ant should be changed");
                    }
                }
            }
        });
    }