final Convertor wrapped = newConvertor(Reference.class);
addConvertor(Reference.class, new Convertor()
{
public Object fromJSON(Map map)
{
return wrapped.fromJSON(map);
}
public void toJSON(Object obj, Output out)
{
getConvertor(obj.getClass(), true).toJSON(obj, out);
}