IPersistentGrantInsurance persistentGrantInsurance = persistentSupport.getIPersistentGrantInsurance(); GrantInsurance grantInsurance = persistentGrantInsurance.readGrantInsuranceByGrantContract(grantContract.getIdInternal()); if (grantInsurance != null) persistentGrantInsurance.deleteByOID(GrantInsurance.class, grantInsurance.getIdInternal());
if (grantContract.getGrantInsurance() != null) { grantContract.getGrantInsurance().delete(); }
    private void deleteAssociatedInsurance(GrantContract grantContract) throws ExcepcaoPersistencia {        IPersistentGrantInsurance persistentGrantInsurance = persistentSupport.getIPersistentGrantInsurance();        GrantInsurance grantInsurance = persistentGrantInsurance.readGrantInsuranceByGrantContract(grantContract.getIdInternal());        if (grantInsurance != null)            persistentGrantInsurance.deleteByOID(GrantInsurance.class, grantInsurance.getIdInternal());    }