DomElement (DomElement parent, final DomCollectionChildDescription childDescription, String newName) { final DomElement domElement = childDescription.addValue(parent); final GenericDomValue nameDomElement = domElement.getGenericInfo().getNameDomElement(domElement); assert nameDomElement != null; nameDomElement.setStringValue(newName); return domElement; }