}
}
if (state.cmlMol == null && state.smiles != null) {
//build from smiles
CMLMolecule cmlMolecule = SMILESTool.createMolecule(state.smiles);
CMLCml cml = new CMLCml();
cml.appendChild(cmlMolecule);
if (state.inchi !=null){
StructureConverter.enhanceCMLMolecule(cml, name, state.inchi);
}