public static InternetAddress parseEmail(Object value){
  String str=Caster.toString(value,"");
  if (str.indexOf('@') > -1) {
    try {
      InternetAddress addr=new InternetAddress(str);
      fixIDN(addr);
      return addr;
    }
 catch (    AddressException ex) {
    }
  }
  return null;
}

public static InternetAddress parseEmail ( Object value ) { String str = Caster . toString ( value , "" ) ; if ( str . indexOf ( '@' ) > - 1 ) { try { InternetAddress addr = new InternetAddress ( str ) ; fixIDN ( addr ) ; return addr ; } catch ( AddressException ex ) { } } return null ; }
returns an internetaddress object or null if the parsing fails . to be be used in multiple places .
