In a Java program, I have a list of beans that I want to filter based on a specific property.

For example, say I have a list of Person, a JavaBean, where Person has many properties, among them 'name'.

I also have a list of names.

Now I want to find all the persons whose name is in the name list.

What is the best way to execute this filter using Google Guava?

So far, I've thought about combining Guava with Apache beanutils, but that doesn't seem elegant.

I've also found a reflection extension library here: http://code.google.com/p/guava-reflection/, but I'm not sure how to use it (there's little documentation).

Any thoughts?

p.s. Can you tell I really miss Python list comprehension?

Edit
Report