String[] parts = new String[2];
try {
if (StringUtils.split(address, "@", parts) == 2) {
return parts[1];
} else {
throw new MailException("illegal address: " + address, false);
}
} catch (IndexOutOfBoundsException e) {
throw new MailException("illegal address: " + address, e, false);
}
}