if(atomizedItor.hasNext()) {
atomizedItor.closeQuietly();
throw new DynamicError("err:XQDY0095", "Illegal resulting value for a grouping variable: "
+ atomized);
}
groupKey = atom.asGroupingValue();
} else {
groupKey = ValueSequence.EMPTY_SEQUENCE;
}
atomizedItor.closeQuietly();