public static void parseFile(File file, int con) throws Exception {
Config.getInstance();
DataAdapter adapter = AdapterFactory.getInstance().getAdapter(file);
if (adapter != null) {
System.out.println("Adaper");
System.out.println(" Name :" + adapter.getName());
System.out.println(" Version :" + adapter.getVersion());
System.out.println(" Description :" + adapter.getDescription());
Configuration config = (Configuration) Config.getInstance()
.getAvailableConfigs().get(con);
System.out.println("Using Configuration :" + config.getName());
File outDir = new File(config.getOutputDirectory());
outDir.mkdirs(); // precaution, in case the directories are not