uri = getURIForPrefix(prefix);
} else {
localName = groupName;
uri = targetNamespace;
}
Group globalGroup = rootSchema.getGroup(uri, localName);
if (globalGroup != null) {
if (globalGroup.getChoice() != null) {
globalGroup.getChoice().setMaxOccurs(group.getMaxOccurs());
processChoice(targetNamespace, defaultNamespace, owningType, globalGroup.getChoice(), isMany);
} else if (globalGroup.getSequence() != null) {
globalGroup.getSequence().setMaxOccurs(group.getMaxOccurs());
processSequence(targetNamespace, defaultNamespace, owningType, globalGroup.getSequence(), isMany);
} else if (globalGroup.getAll() != null) {
globalGroup.getAll().setMaxOccurs(group.getMaxOccurs());
processAll(targetNamespace, defaultNamespace, owningType, globalGroup.getAll(), isMany);
}
}
}
}