if (detail.isGroup()) {
// TODO: extend base type for group/attributeGroup?
QName qname = detail.getOtherName();
SchemaHolder hold = findSchema(qname.getUri());
if (detail.hasChild()) {
GroupElement group = new GroupElement();
group.setName(qname.getName());
group.setDefinition(buildCompositor(mapping, 0, false, hold));
addDocumentation(info, group);
hold.getSchema().getTopLevelChildren().add(group);
}
if (detail.hasAttribute()) {
AttributeGroupElement attgrp = new AttributeGroupElement();