private List<InvestmentTxaction> filterByInvestmentSecurities(List<InvestmentTxaction> investmentTxactions) {
return Lists.newArrayList(
Iterables.filter(investmentTxactions, new Predicate<InvestmentTxaction>() {
@Override
public boolean apply(InvestmentTxaction investmentTxaction) {
final InvestmentSecurity investmentSecurity = investmentTxaction.getInvestmentSecurity();
return (investmentSecurity != null) && investmentSecurityNames.contains(investmentSecurity.getName());
}
})
);
}