Convert a Collection to Another Type With Commons Collections
private Collection<Apple> convert(final Collection<Orange> values) { final Collection<Apple> converted = CollectionUtils.collect(values, new Transformer(){ public Object transform(final Object target){ Orange result = null; if(target != null){ result = new Apple(target.getName()); } return result; } }); return converted; }