}
private static Object _toPojo(PageContext pc, TypeMapping tm,Component comp, Class targetClass, Set<Object> done) throws PageException {//print.ds();System.exit(0);
ComponentAccess ca = ComponentUtil.toComponentAccess(comp);
comp=ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,ca);
ComponentScope scope = ca.getComponentScope();
Property[] props=comp.getProperties(false);
//Map rtn=new HashTable();
Object obj=null;
try {
obj = ClassUtil.loadInstance(ComponentUtil.getServerComponentPropertiesClass(pc,comp));
} catch (ClassException e) {
throw Caster.toPageException(e);
}
//PageContext pc = ThreadLocalPageContext.get();
Property p;
Object v;
Collection.Key k;
CFMLExpressionInterpreter interpreter = new CFMLExpressionInterpreter();
for(int i=0;i<props.length;i++){
p=props[i];
k=Caster.toKey(p.getName());
// value
v=scope.get(k,null);
if(v==null)v=comp.get(k, null);
// default
if(v!=null)v=Caster.castTo(pc, p.getType(), v, false);
else{