map.put(key,toAMFObject(value));
}
return map;
}
private Object toAMFObject(Component c) throws PageException {
ASObject aso = new ASObject();
if(c instanceof ComponentAccess) {
Property[] prop = c.getProperties(false);
if(prop!=null)for(int i=0;i<prop.length;i++) {
aso.put(prop[i].getName().toUpperCase(), toAMFObject(c.get(prop[i].getName(),null)));
}
}
return aso;
}