GratuitySituation gratuitySituation = gratuityTransaction.getGratuitySituation();
    public void delete() {        if (this instanceof GratuityTransaction) {            GratuityTransaction gratuityTransaction = (GratuityTransaction) this;            gratuityTransaction.removeGratuitySituation();                        GratuitySituation gratuitySituation = gratuityTransaction.getGratuitySituation();            double guideEntryValue = getGuideEntry().getPrice() * getGuideEntry().getQuantity();            gratuitySituation.setRemainingValue(gratuitySituation.getRemainingValue() + guideEntryValue);        }                removeGuideEntry();        removeResponsiblePerson();        removePersonAccount();        removeRootDomainObject();        deleteDomainObject();    }