}
patternType.setName(group.getName());
if(!isEmpty(group.getVersion())) {
patternType.setVersion(group.getVersion());
} else {
if(patternType.isSetVersion()) patternType.unsetVersion();
}
clearNonPatternFromChoice();
} else {
if(old != null) {
((XmlObjectBase)getXmlObject()).get_store().remove_element(new QName("http://geronimo.apache.org/xml/ns/naming-1.2", "pattern"), 0);