toList = contactRemote.getEmailContactForIndividuals(individualIDs);
String fromAddress = contactRemote.getPrimaryEmailAddress(individualID,2);
if (fromAddress != null && !fromAddress.equals("") && toList != null && toList.size() != 0)
{
EmailSettingsLocalHome emailSettingsHome = (EmailSettingsLocalHome)ic.lookup("local/EmailSettings");
EmailSettingsLocal emailSettingsRemote = (EmailSettingsLocal)emailSettingsHome.create();
emailSettingsRemote.setDataSource(dataSource);
// Its a predefined Template for the replying message for Task Completion
EmailTemplateForm taskTemplateForm = emailSettingsRemote.getEmailTemplate(AdministrationConstantKeys.EMAIL_TEMPLATE_TASK);
String subject = taskTemplateForm.getSubject();