String fileName = argv[0]; String relationName = argv[1]; String outputFileName = argv[2];
ConvertToARFF converter = commandLine.getConverter();
	public static void main(String[] argv) throws Exception {		if (argv.length != 3) {			System.err.println("Usage: " + ConvertToARFF.class.getName() +				" <findbugs results> <relation name> <output file>");			System.exit(1);		}		String fileName = argv[0];		String relationName = argv[1];		String outputFileName = argv[2];		SAXReader reader = new SAXReader();		Document document = reader.read(fileName);		ConvertToARFF converter = new ConvertToARFF();		// FIXME: this conversion scheme is arbitrary		// FIXME: method and field signatures?		converter.addNominalAttribute("bugtype", "@type");		converter.addNominalAttribute("class", "./Class[1]/@classname");		converter.addNominalAttribute("methodname", "./Method[1]/@name");		converter.addNominalAttribute("auxmethodclass", "./Method[2]/@classname");		converter.addNominalAttribute("auxmethodname", "./Method[2]/@name");		converter.addNominalAttribute("fieldclass", "./Field[1]/@classname");		converter.addNominalAttribute("fieldname", "./Field[1]/@name");		converter.addNumericAttribute("priority", "@priority");		converter.addClassificationAttribute();		Writer out = new OutputStreamWriter(new BufferedOutputStream(			new FileOutputStream(outputFileName)));		converter.convert(relationName, document, out);		out.close();	}