protected ZuulFilter<HttpRequestMessage, HttpResponseMessage> getEndpoint(
            String endpointName, HttpRequestMessage zuulRequest) {
        SessionContext zuulCtx = zuulRequest.getContext();

        if (zuulCtx.getStaticResponse() != null) {
            return STATIC_RESPONSE_ENDPOINT;
        }

        if (endpointName == null) {
            return new MissingEndpointHandlingFilter("NO_ENDPOINT_NAME");
        }

        if (endpointName.equals(PROXY_ENDPOINT_FILTER_NAME)) {
            return newProxyEndpoint(zuulRequest);
        }

        Endpoint<HttpRequestMessage, HttpResponseMessage> filter = getEndpointFilter(endpointName);
        if (filter == null) {
            return new MissingEndpointHandlingFilter(endpointName);
        }

        return filter;
    }
This class is supposed to be thread safe and hence should not have any non final member variables
Created by saroskar on 5/18/17.
zuul-core/src/main/java/com/netflix/zuul/netty/filter/ZuulEndPointRunner.java