public static Map<String,String> splitStrParams(String paramStr,String paramDelim){
  Map<String,String> res=FastMap.newInstance();
  for (  String pair : paramStr.split(paramDelim)) {
    String[] parts=pair.split("=",2);
    if (parts.length >= 2) {
      res.put(parts[0],parts[1]);
    }
  }
  return res;
}

public static Map < String , String > splitStrParams ( String paramStr , String paramDelim ) { Map < String , String > res = FastMap . newInstance ( ) ; for ( String pair : paramStr . split ( paramDelim ) ) { String [ ] parts = pair . split ( "=" , 2 ) ; if ( parts . length >= 2 ) { res . put ( parts [ 0 ] , parts [ 1 ] ) ; } } return res ; }
extracts parameters from a string in the format and returns as a hash : name1 = val1delimname2 = val2delimname3 = val3 where delim is specified delimiter ( & & amp ; , ; etc . )
