public static boolean candidateCorsRequest(ApiRequest request) {
        return request.getHeaders().get(ORIGIN_KEY) != null;
    }
Is the request related to CORS? Helps avoid unnecessary object creation.

@param request the request
@return true if CORS is a request
plugins/cors-policy/src/main/java/io/apiman/plugins/cors_policy/CorsConnector.java