} else if("text/plain".equals(type) && "Name did not parse!".equals(new BufferedReader(new InputStreamReader(conn.getInputStream())).readLine())) {
// Failure from SimpleOPSINServlet
return null;
} else if("chemical/x-mdl-molfile".equals(type)) {
MDLReader mdlr = new MDLReader(conn.getInputStream());
IMolecule outputMol = (IMolecule)mdlr.read(new Molecule());
StructureConverter.configureMolecule(outputMol);
String smiles = generator.createSMILES(outputMol);
String inchi = ConverterToInChI.getInChI(outputMol);
Results results = new Results(smiles, inchi, null);
return results;