Node nextSibling = null;
if (lastConstructorArg != null) {
nextSibling = lastConstructorArg.getNextSibling();
}
FormatProcessorXML formatter = new FormatProcessorXML();
Element[] constructorArgs = new Element[numAdditionalArgs];
for (int i = 0; i < numAdditionalArgs; i++) {
constructorArgs[i] = ownerDocument.createElement(BeansSchemaConstants.ELEM_CONSTRUCTOR_ARG);
if (nextSibling != null) {
beanNode.insertBefore(constructorArgs[i], nextSibling);
}
else {
beanNode.appendChild(constructorArgs[i]);
}
}
formatter.formatNode(beanNode);
if (model != null) {
model.endRecording(this);
}
LinkedModeModel linkModel = new LinkedModeModel();
boolean hasPositions = false;
for (Element element : constructorArgs) {
formatter.formatNode(element);
if (element instanceof ElementImpl) {
ElementImpl elementImpl = (ElementImpl) element;
int nodeOffset = elementImpl.getStartEndOffset() - 1;
LinkedPositionGroup group = new LinkedPositionGroup();