@Override public Collection<CustomerBrokerNegotiation> getSales(final NegotiationStatus status) throws CantGetSaleNegotiationException { try { HashSet<CustomerBrokerNegotiation> sales = new HashSet<>(); for (CustomerBrokerNegotiation sale : saleNegotiationManager.getNegotiationsByBroker(identity)) { if (sale.getStatus() == status) sales.add(sale); } return sales; } catch (CantGetListSaleNegotiationsException e) { throw new CantGetSaleNegotiationException( CantGetSaleNegotiationException.DEFAULT_MESSAGE, e, "", ""); } }