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 .