int r = rGroupNumItr.next(); rGroupNumbers.add(r); List<Integer> validOcc = rGroupDefinitions.get(r).matchOccurence(getRgroupQueryAtoms(r).size()); if (validOcc.size() == 0) { throw new CDKException("Occurrence '" + rGroupDefinitions.get(r).getOccurrence()