} else {
name = pModel.substring(0, offset).trim();
pModel = pModel.substring(offset);
}
if (elements.containsKey(name)) {
XsTLocalElement e = choice.createElement();
e.setRef(new XsQName(getTargetNamespace(), getLocalPart(name)));
} else {
throw new SAXParseException("Element " + pElement.getName()
+ " references element " + name
+ ", which is not declared",