}
}
void addTo(JizzDj to) throws JizzEmailException {
if (to.getEmail() == null) {
throw new JizzEmailException("DJ has no email address");
}
if (to.getEmailConfirmation() != null) {
throw new JizzEmailException("DJ's email address has not been "
+ "confirmed");
}
try {
if (to.getName() != null && to.getName().length() > 0) {
email.addTo(to.getEmail(), to.getName());
} else {
email.addTo(to.getEmail());
}
} catch (EmailException eEx) {
throw new JizzEmailException(eEx);
}
}