copyTemplate("view-state-1.jspx", resolvedFlowPath);
copyTemplate("view-state-2.jspx", resolvedFlowPath);
copyTemplate("end-state.jspx", resolvedFlowPath);
new XmlTemplate(fileManager).update(resolvedFlowDefinitionPath,
new DomElementCallback() {
public boolean doWithElement(final Document document,
final Element root) {
final List<Element> states = XmlUtils.findElements(
"/flow/view-state|end-state", root);
for (final Element state : states) {