/** * Extracts property value from a collection of objects using * JavaBean-compatible introspection with one addition - a property can be a * dot-separated property name path. */ public List<E> getFromAll(Collection<?> beans) { List<E> result = new ArrayList<>(beans.size()); for (Object bean : beans) { result.add(getFrom(bean)); } return result; }