MDLV2000Reader reader = new MDLV2000Reader(ins);
IChemModel basic;
try {
basic = (IChemModel) reader.read(DefaultChemObjectBuilder.getInstance().newInstance(IChemModel.class));
AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(basic.getMoleculeSet().getAtomContainer(0));
CDKHydrogenAdder hAdder = CDKHydrogenAdder.getInstance(basic.getMoleculeSet().getAtomContainer(0)
.getBuilder());
hAdder.addImplicitHydrogens(basic.getMoleculeSet().getAtomContainer(0));
//valencies are set when doing atom typing, which we don't want in jcp
for(int i=0;i<basic.getMoleculeSet().getAtomContainer(0).getAtomCount();i++){
basic.getMoleculeSet().getAtomContainer(0).getAtom(i).setValency(null);
}
panel.setChemModel(basic);