code: private static void _registerTypeMapping(WSServer server, Class clazz) {
  	if (clazz == null) return;
  
  	if (!isComplexType(clazz)) {
  	    if (clazz.isArray()) {
  		_registerTypeMapping(server, clazz.getComponentType());
  	    }
  	    return;
  	}
  	server.registerTypeMapping(clazz);
  	registerTypeMapping(server, clazz);
      }
docs: register ComplexType
  
  @param server
  @param clazz