code: private static Class registerTypeMapping(Class clazz) throws PageException {
  	PageContext pc = ThreadLocalPageContext.get();
  	WSServer server = ((ConfigImpl) ThreadLocalPageContext.getConfig(pc)).getWSHandler().getWSServer(pc);
  	return registerTypeMapping(server, clazz);
      }
docs: search in methods of a class for complex types
  
  @param clazz
  @return
  @throws PageException