public class SearchAllActiveParties extends SearchParties<Party> {
@Override
protected Collection<Party> search(String value, int size) {
Set<Party> result = new HashSet<Party>();
result.addAll(new PersonSearcher().bestEffortQuery(value).search(size).collect(Collectors.toSet()));
YearMonthDay currentDate = new YearMonthDay();
for (UnitName unitName : UnitName.find(value, size)) {
if (unitName.getUnit().isActive(currentDate)) {
result.add(unitName.getUnit());
}