public boolean hideNewTransaction(
     final Guarantee guarantee,
     final LocalDate transactionDate,
     final String description,
     final BigDecimal amount) {
   return guarantee.getFinancialAccount() == null;
 }
  @Action(semantics = SemanticsOf.NON_IDEMPOTENT)
  public Guarantee newTransaction(
      final Guarantee guarantee,
      final LocalDate transactionDate,
      final String description,
      final BigDecimal amount) {

    financialAccountTransactions.newTransaction(
        guarantee.getFinancialAccount(), transactionDate, description, amount);
    return guarantee;
  }
 @Action(semantics = SemanticsOf.SAFE)
 @ActionLayout(contributed = Contributed.AS_ASSOCIATION)
 @CollectionLayout(render = RenderType.EAGERLY)
 public List<FinancialAccountTransaction> transactions(Guarantee guarantee) {
   return financialAccountTransactions.transactions(guarantee.getFinancialAccount());
 }