public static Object callStaticMethod ( Class staticClass , String methodName , Object [ ] values ) throws PageException { if ( values == null ) values = new Object [ 0 ] ; MethodParameterPair mp ; try { mp = getMethodParameterPairIgnoreCase ( staticClass , methodName , values ) ; } catch ( NoSuchMethodException e ) { throw Caster . toPageException ( e ) ; } try { return mp . getMethod ( ) . invoke ( null , mp . getParameters ( ) ) ; } catch ( InvocationTargetException e ) { Throwable target = e . getTargetException ( ) ; if ( target instanceof PageException ) throw ( PageException ) target ; throw Caster . toPageException ( e . getTargetException ( ) ) ; } catch ( Exception e ) { throw Caster . toPageException ( e ) ; } }
call of a static method of a Class