if (hasPaymentTransaction()) { getPaymentTransaction().delete();
if (canBeDeleted()) { if (hasPaymentTransaction()) { getPaymentTransaction().delete(); }  Guide guide = getGuide(); removeGuide(); guide.updateTotalValue();  removeRootDomainObject();  deleteDomainObject(); } else { throw new DomainException("guide.entry.cannot.be.deleted");
    public void delete() {        if (hasPaymentTransaction()) {            getPaymentTransaction().delete();        }        for (; hasAnyReimbursementGuideEntries(); getReimbursementGuideEntries().get(0).delete());                removeGuide();        removeRootDomainObject();        deleteDomainObject();    }