Resource[] callResourceArrayRTE(PageContext pc,Component cfc,String methodName, Object[] args) {
pc = ThreadLocalPageContext.get(pc);
try {
Array arr = Caster.toArray(call(pc,getCFC(pc,cfc), methodName, args));
Iterator<Object> it = arr.valueIterator();
CFMLResource[] resources=new CFMLResource[arr.size()];
int index=0;
while(it.hasNext()){
resources[index++]=new CFMLResource(this,Caster.toComponent(it.next()));
}