*/
protected static void doXStreamRegistrations() {
logger.trace("doing XStream alias registrations.");
//Register it in all known XStreams just to be sure.
Items.XSTREAM.registerConverter(new TriggerContextConverter());
Hudson.XSTREAM.registerConverter(new TriggerContextConverter());
//This is where the problems where, reading builds.
Run.XSTREAM.registerConverter(new TriggerContextConverter());
Run.XSTREAM2.addCompatibilityAlias(
"com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ManualPatchsetCreated",
ManualPatchsetCreated.class);
Items.XSTREAM.aliasPackage("com.sonyericsson.hudson.plugins.gerrit.gerritevents",