private Obligation createSimpleObligationWithTriggerPeriodic() {
    Obligation obligation = new Obligation();
    ActionDeletePersonalData actionDelete = new ActionDeletePersonalData();
    obligation.setAction(ofObligation.createActionDeletePersonalData(actionDelete));

    // TriggerSet element
    TriggersSet triggerSet = new TriggersSet();
    obligation.setTriggersSet(triggerSet);
    List<TriggersSetTriggerItem> triggerItemList = new ArrayList<TriggersSetTriggerItem>();
    triggerSet.setTriggerItems(triggerItemList);

    // TriggerAtTime element
    TriggersSetTriggerItem triggerItem = new TriggersSetTriggerItem();
    triggerItemList.add(triggerItem);
    TriggerPeriodic triggerPeriodic = new TriggerPeriodic();
    triggerPeriodic.setName("{http://www.primelife.eu/ppl/obligation}TriggerPeriodic");
    DateAndTime startDate = new DateAndTime();
    startDate.setStartNowObject("<StartNow/>");
    triggerPeriodic.setStart(startDate);
    Duration duration = new Duration();
    duration.setDuration("P0Y0M0DT1H0M0S");
    triggerPeriodic.setMaxDelay(duration);
    DateAndTime endDate = new DateAndTime();
    endDate.setDateAndTimeItem(new Date());
    triggerPeriodic.setEnd(endDate);

    triggerItem.setItem(ofObligation.createTriggerPeriodic(triggerPeriodic));

    return obligation;
  }
  private Obligation createSimpleObligationWithSimpleTrigger() {
    Obligation obligation = new Obligation();
    ActionDeletePersonalData actionDelete = new ActionDeletePersonalData();
    obligation.setAction(ofObligation.createActionDeletePersonalData(actionDelete));

    // TriggerSet element
    TriggersSet triggerSet = new TriggersSet();
    obligation.setTriggersSet(triggerSet);
    List<TriggersSetTriggerItem> triggerItemList = new ArrayList<TriggersSetTriggerItem>();
    triggerSet.setTriggerItems(triggerItemList);

    // TriggerAtTime element
    TriggersSetTriggerItem triggerItem = new TriggersSetTriggerItem();
    triggerItemList.add(triggerItem);

    TriggerPersonalDataSent triggerPersonalDataSent = new TriggerPersonalDataSent();
    triggerPersonalDataSent.setName(
        "{http://www.primelife.eu/ppl/obligation}TriggerPersonalDataSent");
    Duration duration = new Duration();
    duration.setDuration("P0Y0M0DT0H5M0S");
    triggerPersonalDataSent.setMaxDelay(duration);
    triggerPersonalDataSent.setId("http://www.primelife.eu/ppl/email");
    triggerItem.setItem(ofObligation.createTriggerPersonalDataSent(triggerPersonalDataSent));

    return obligation;
  }