SmilesParser sp = new SmilesParser(
DefaultChemObjectBuilder.getInstance());
toPaste = sp.parseSmiles(
((String) transfer.getTransferData(
DataFlavor.stringFlavor)).trim());
toPaste = new FixBondOrdersTool().kekuliseAromaticRings(toPaste);
IAtomContainerSet mols = ConnectivityChecker.partitionIntoMolecules(toPaste);
for(int i=0;i<mols.getAtomContainerCount();i++)
{
StructureDiagramGenerator sdg =