question: public static Map < String , String > parseQuery ( String queryString ) throws Exception { if ( queryString != null && ! queryString . isEmpty ( ) ) { Map < String , String > rc = new HashMap < > ( ) ; String [ ] parameters = queryString . split ( "&" ) ; for ( String parameter : parameters ) { int p = parameter . indexOf ( "=" ) ; if ( p >= 0 ) { String name = URLDecoder . decode ( parameter . substring ( 0 , p ) , "UTF-8" ) ; String value = URLDecoder . decode ( parameter . substring ( p + 1 ) , "UTF-8" ) ; rc . put ( name , value ) ; } else { rc . put ( parameter , null ) ; } } return rc ; } return Collections . emptyMap ( ) ; }
target:  Get properties from a URI query string.