private static String normalizePath(final Service service) {
        var path = service.getId();
        path = StringUtils.substringBefore(path, "?");
        path = StringUtils.substringBefore(path, ";");
        path = StringUtils.substringBefore(path, "#");
        return path;
    }
Normalize the path of a service by removing the query string and everything after a semi-colon.

@param service the service to normalize
@return the normalized path
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/tracking/MostRecentServiceSessionTrackingPolicy.java