public static Component toComponent ( Object o ) throws PageException { if ( o instanceof Component ) return ( Component ) o ; else if ( o instanceof ObjectWrap ) { return toComponent ( ( ( ObjectWrap ) o ) . getEmbededObject ( ) ) ; } throw new CasterException ( o , "Component" ) ; }
cast a Object to a Component