xstream.registerConverter(new CalendarConverter(), XStream.PRIORITY_VERY_HIGH);
try
{
xstream.registerConverter(new ToStringConverter(GpsCoordinate.class), XStream.PRIORITY_VERY_HIGH);
xstream.registerConverter(new ToStringConverter(GpsBox.class), XStream.PRIORITY_VERY_HIGH);
xstream.registerConverter(new ToStringConverter(WhereOnEarthId.class), XStream.PRIORITY_VERY_HIGH);
xstream.registerConverter(new ToStringConverter(PlaceId.class), XStream.PRIORITY_VERY_HIGH);
}
catch (NoSuchMethodException e)
{
throw new RuntimeException(e);
}