try {
lock.lock();
File tmpMolFile = File.createTempFile("m2i", ".mol");
File tmpInChIFile = File.createTempFile("m2i", ".mol.txt");
MDLWriter mdlWriter = new MDLWriter(new FileWriter(tmpMolFile));
mdlWriter.writeMolecule(mol);
new File(inchiBinary).exists();
//Process proc =
String cmd = inchiBinary + " " +
tmpMolFile.getAbsolutePath() + " " + tmpInChIFile.getAbsolutePath();
if(key) {