public static final ApiRequest getApiRequest() {
        ApiRequest request = apiRequest.get();
        if (request == null) {
            request = new ApiRequest();
            apiRequest.set(request);
        }
        request.setApiKey(null);
        request.setUrl(null);
        request.setDestination(null);
        request.getHeaders().clear();
        request.setRawRequest(null);
        request.setRemoteAddr(null);
        request.setType(null);
        request.setTransportSecure(false);
        return request;
    }
@return the thread-local api request
gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/GatewayThreadContext.java