Campaign c = (Campaign) InodeFactory.getParentOfClass(r, Campaign.class);
if (InodeUtils.isSet(r.getInode())) {
//update recipient click through-links
try {
Click click = ClickFactory.getClickByLinkAndRecipient(redir, r);
click.setClickCount((click.getClickCount() + 1));
click.setLink(redir);
HibernateUtil.saveOrUpdate(click);
r.addChild(click);
HibernateUtil.saveOrUpdate(r);
//update queue clickthrough links
click = ClickFactory.getClickByLinkAndCampaign(redir, c);
click.setClickCount((click.getClickCount() + 1));
click.setLink(redir);
HibernateUtil.saveOrUpdate(click);
c.addChild(click);
HibernateUtil.saveOrUpdate(c);
} catch (DotHibernateException e1) {
Logger.error(this, e1.getMessage(), e1);