String descricaoEvento = "Vencimento da Data limite para " + arli.getTipoFuncAcompTpfa().getLabelPosicaoTpfa() + ".";
Iterator itList = listAri.iterator();
while( itList.hasNext() ) {
ItemEstUsutpfuacIettutfa itemEstUsutpfacIetutfa = (ItemEstUsutpfuacIettutfa) itList.next();
TipoFuncAcompTpfa tipoFuncao = itemEstUsutpfacIetutfa.getTipoFuncAcompTpfa();
TfuncacompConfigmailTfacfgmPK tfcfgmPK = new TfuncacompConfigmailTfacfgmPK();
tfcfgmPK.setCodCfgm(configMailCfgm.getCodCfgm());
tfcfgmPK.setCodTpfa(tipoFuncao.getCodTpfa());
TfuncacompConfigmailTfacfgm tfcfm = (TfuncacompConfigmailTfacfgm) tfuncacompConfigmailTfacfgmDAO.buscar(TfuncacompConfigmailTfacfgm.class, tfcfgmPK);
//Verificando se j� existe posi��o liberada
//Caso j� exista (indLiberadoArel) , n�o precisa mandar e-mail
AcompRelatorioArel acompRelatorio = acompRelatorioDao.getAcompRelatorio(tipoFuncao, ari);
if ( acompRelatorio != null && !"S".equals(acompRelatorio.getIndLiberadoArel()) ) {
if ( itemEstUsutpfacIetutfa != null && itemEstUsutpfacIetutfa.getComp_id() != null && "S".equals(tfcfm.getEnviaMailTfacfgm()) ) {
//UsuarioUsu usu = (UsuarioUsu) usuDAO.buscar(UsuarioUsu.class, itemEstUsutpfacIetutfa.getComp_id().getCodUsu());
List usuarios = new ArrayList();
if (itemEstUsutpfacIetutfa.getUsuarioUsu() != null) {
usuarios.add((UsuarioUsu) usuDAO.buscar(UsuarioUsu.class, itemEstUsutpfacIetutfa.getUsuarioUsu().getCodUsu()));
} else if (itemEstUsutpfacIetutfa.getSisAtributoSatb() != null){
usuarios.addAll(usuDAO.getUsuariosBySisAtributoSatb(itemEstUsutpfacIetutfa.getSisAtributoSatb()));
}
Iterator itUsu = usuarios.iterator();
while (itUsu.hasNext()){