ISimpleChemObjectReader cor=null;
IChemModel chemModel = null;
if (mol.contains("$RGP")) {
cor= new RGroupQueryReader(new StringReader(mol));
chemModel=JChemPaint.getChemModelFromReader(cor, theJcpp);
}
else {
cor= new MDLV2000Reader(new StringReader(mol), Mode.RELAXED);
chemModel=JChemPaint.getChemModelFromReader(cor, theJcpp);