private static Map<String,Object> toMap(TypeMapping tm,Object value, Class targetClass, Set<Object> done) throws PageException {
Struct src = Caster.toStruct(value);
Map<String,Object> trg=new HashMap<String,Object>();
Iterator<Entry<Key, Object>> it = src.entryIterator();
Entry<Key, Object> e;
while(it.hasNext()) {
e = it.next();
trg.put(e.getKey().getString(),_toAxisType(tm,null,null,e.getValue(),targetClass,done));