refactoring - using CollectionUtils to find the first encounter using given predicate.