} // end if (primaryAdd != null)
// set the Method of Contacts
Collection mocList = individualVOReference.getMOC();
Iterator iterator = mocList.iterator();
while (iterator.hasNext()) {
MethodOfContactVO moc = (MethodOfContactVO) iterator.next();
// TODO Should we make an effort to see if the email address is the
// primary???
if (moc.getMocType() == 1) // this is for email
{
printTemplateField.setEmail(moc.getContent());
} else if (moc.getMocType() != 1) {
String syncAs = moc.getSyncAs();
if (syncAs != null) {
if (syncAs.trim().equals("Fax")) {
printTemplateField.setFax(moc.getContent());
}
if (syncAs.trim().equals("Home")) {
printTemplateField.setHome(moc.getContent());
}
if (syncAs.trim().equals("Main")) {
printTemplateField.setMain(moc.getContent());
}
if (syncAs.trim().equals("Mobile")) {
printTemplateField.setMobile(moc.getContent());
}
if (syncAs.trim().equals("Other")) {
printTemplateField.setOther(moc.getContent());
}
if (syncAs.trim().equals("Pager")) {
printTemplateField.setPager(moc.getContent());
}
if (syncAs.trim().equals("Work")) {
printTemplateField.setWork(moc.getContent());
}
} // end of if (syncAs != null)
} // end of else statement (moc.getMocType() == 1)
} // end of while
} catch (Exception e) {