I have this code. The object o comes to me from spring\'s validator. I would like to get rid of the if conditions. How can i implement that.
if (o instance