Configurator configurator= new XMLConfigurator((File)cl.getOptionObject('c'));
File file= (File)cl.getOptionObject('c'); if (!file.exists()) { System.out.println("Configuration file not found: " +file); System.exit(0); } Configurator configurator= new XMLConfigurator(file);
	public static void main(String[] args) throws Exception{	    CommandLineParser parser= new BasicParser();	    CommandLine cl= null;;	    try {            cl= parser.parse(getOptions(), args);        } catch (ParseException e) {            HelpFormatter hf= new HelpFormatter();            hf.printHelp("net.java.dev.jminimizer.JMinimizer", getOptions());            System.exit(0);        }		Configurator configurator= new XMLConfigurator((File)cl.getOptionObject('c'));		Repository repo= new URLRepository(configurator.getProgramClasspath(), configurator.getRuntimeClasspath());		System.out.println("Analysing...");		Analyser an= new Analyser(configurator, repo);		Set usedMethods= new HashSet();		an.analyse(configurator.getMethodsToInspect(), usedMethods);		System.out.println("Transforming...");		Set methodsThatUseClassForName= an.getMethodsThatUseClassForName();		Visitor visitor= new Transformer(configurator, repo, usedMethods, methodsThatUseClassForName);		an.receiveVisitor(visitor);		visitor.finish();	}