@@ -0,0 +1,409 @@
+package com.github.nwillc.opa;%0A%0Aimport java.util.Optional;%0A%0Apublic class DeleteMomento%3CK, T extends HasKey%3CK%3E%3E implements Momento %7B%0A    private final Dao%3CK,T%3E dao;%0A    private final Optional%3CT%3E element;%0A%0A    public DeleteMomento(Dao%3CK, T%3E dao, K key) %7B%0A        this.dao = dao;%0A        element = dao.findOne(key);%0A    %7D%0A%0A    @Override%0A    public void rollback() %7B%0A        element.ifPresent(dao::save);%0A    %7D%0A%7D%0A

Delete memento first cut