class Xs2aEndpointChecker {

    public boolean isXs2aEndpoint(HttpServletRequest request) {
        String requestPath = requestPathResolver.resolveRequestPath(request);

        return Stream.of(Xs2aEndpointPathConstant.getAllXs2aEndpointPaths())
                   .anyMatch(en -> matcher.match(en, requestPath));
    }

}