@Override
        public void doFilter(final ServletRequest request,
                             final ServletResponse response,
                             final FilterChain filterChain) throws ServletException, IOException {
            val remoteAddress = Optional.ofNullable(ClientInfoHolder.getClientInfo())
                .map(ClientInfo::getClientIpAddress)
                .orElseGet(request::getRemoteAddr);
            val message = String.format("Remote address to process is [%s]", remoteAddress);
            logger.trace(message);
            process(remoteAddress, request, response, filterChain);
        }
This is {@link CasEmbeddedContainerTomcatFiltersConfiguration}.

@author Misagh Moayyed
@since 5.0.0
webapp/cas-server-webapp-init-tomcat/src/main/java/org/apereo/cas/config/CasEmbeddedContainerTomcatFiltersConfiguration.java