add handlerReturnType to generate document