if(page instanceof InterfacePage)
throw new ApplicationException("can not instantiate interface ["+callPath+"] as a component");
throw new ApplicationException("invalid component definition ["+callPath+"]");
}
ComponentPage cp = (ComponentPage)page;
ComponentImpl c = cp.newInstance(pc,callPath,isRealPath);
c.setInitalized(true);
return c;
}