public static final ApiResponse getApiResponse() {
        ApiResponse response = apiResponse.get();
        if (response == null) {
            response = new ApiResponse();
            apiResponse.set(response);
        }
        response.setCode(0);
        response.getHeaders().clear();
        response.setMessage(null);
        response.getAttributes().clear();
        return response;
    }
@return the thread-local api response
gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/GatewayThreadContext.java