String group = payload.getGroup();
String content = payload.getContent();
String url = payload.getUrl();
Date date = payload.getAlterationDate();
Alteration alt = new Alteration();
alt.setType(type);
alt.setDomain(domain);
alt.setTitle(title);
alt.setIp(ip);
alt.setUser(user);
alt.setAltGroup(group);
alt.setContent(content);
alt.setHostname(hostname);
alt.setDate(date);
try {
alt.setUrl(URLDecoder.decode(url, "UTF-8"));
} catch (UnsupportedEncodingException e) {
Cat.logError(e);
alt.setUrl("");
}
return alt;
}