} else if (singleSelection instanceof IBond) {
IBond bond = (IBond) singleSelection;
if (!container.contains(bond)) container.addBond(bond);
else container.addBond(bond);
}
LogicalSelection logSel = new LogicalSelection(LogicalSelection.Type.ALL);
logSel.select(container);
sel = logSel;
} else {
if (singleSelection == null) {
selection.clear();
sel = AbstractSelection.EMPTY_SELECTION;