// otherwise excessive
xstream.registerConverter(new Converter() {
public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
HintMap map = (HintMap) source;
for (Iterator<Entry<String, Float>> iterator = map.entrySet().iterator(); iterator.hasNext();) {
Entry<String, Float> entry = iterator.next();
writer.addAttribute(entry.getKey().toString(), entry.getValue().toString());
}
}