Hi,
If you are using Set as collection directly you can use contain method of set to test if that object present in that collection.

bean factory