if(arguments.length==0 && methodName.equalsIgnoreCase("getClass")){
return clazz;
}
// invoke constructor and call instance method
return mi.invoke(init());
}
catch(InvocationTargetException e) {
Throwable target = e.getTargetException();
if(target instanceof PageException) throw (PageException)target;
throw Caster.toPageException(e.getTargetException());