// Export generated preservation action plan
addPreservationActionPlan(p.getPreservationActionPlan(), projectNode, addDigitalObjectData);
// Plan definition
Element planDef = projectNode.addElement("planDefinition");
PlanDefinition pdef = p.getPlanDefinition();
planDef.addAttribute("currency", pdef.getCurrency());
addStringElement(planDef, "costsIG", pdef.getCostsIG());
addStringElement(planDef, "costsPA", pdef.getCostsPA());
addStringElement(planDef, "costsPE", pdef.getCostsPE());
addStringElement(planDef, "costsQA", pdef.getCostsQA());
addStringElement(planDef, "costsREI", pdef.getCostsREI());
addStringElement(planDef, "costsRemarks", pdef.getCostsRemarks());
addStringElement(planDef, "costsRM", pdef.getCostsRM());
addStringElement(planDef, "costsTCO", pdef.getCostsTCO());
addStringElement(planDef, "responsibleExecution", pdef.getResponsibleExecution());
addStringElement(planDef, "responsibleMonitoring", pdef.getResponsibleMonitoring());
triggers = planDef.addElement("triggers");
if (pdef.getTriggers() != null) {
addTrigger(pdef.getTriggers().getNewCollection(), triggers);
addTrigger(pdef.getTriggers().getPeriodicReview(), triggers);
addTrigger(pdef.getTriggers().getChangedEnvironment(), triggers);
addTrigger(pdef.getTriggers().getChangedObjective(), triggers);
addTrigger(pdef.getTriggers().getChangedCollectionProfile(), triggers);
}
addChangeLog(pdef.getChangeLog(), planDef);
}