private void updateExecutionProperties( Element executionElement, com.viadee.acceptancetests.roo.addon.Execution execution) { removeAllChildNodes(executionElement); _pomWrapper.addChildToParentWithNameAndTextContent(executionElement, "id", execution.getId()); _pomWrapper.addChildToParentWithNameAndTextContent( executionElement, "phase", execution.getPhase()); Element goalsElement = _pomWrapper.createElement("goals"); for (String goal : execution.getGoals()) { _pomWrapper.addChildToParentWithNameAndTextContent(goalsElement, "goal", goal); } executionElement.appendChild(goalsElement); execution.serializeExecutionConfiguration(executionElement, this); }