private Element findOrCreateExecutionElement(Element executionsElement, Execution execution) { Element executionElement = findExecutionElement(executionsElement, execution); if (executionElement == null) { executionElement = _pomWrapper.addChildElementWithName(getDomElement(), "execution"); executionsElement.appendChild(executionElement); } return executionElement; }