code: private static Class registerTypeMapping(WSServer 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;
      }
docs: search in methods of a class for complex types
  
  @param server
  @param clazz
  @return