question: private static Class registerTypeMapping ( RPCServer server , Class clazz ) { java . lang . reflect . Method [ ] methods = clazz . getMethods ( ) ; java . lang . reflect . Method method ; Class [ ] params ; for ( int i = 0 ; i < methods . length ; i ++ ) { method = methods [ i ] ; if ( method . getDeclaringClass ( ) == clazz ) { _registerTypeMapping ( server , method . getReturnType ( ) ) ; params = method . getParameterTypes ( ) ; for ( int y = 0 ; y < params . length ; y ++ ) { _registerTypeMapping ( server , params [ y ] ) ; } } } return clazz ; }
target:  search in methods of a class for complex types