private Map processEvent(MatchResult result){
  Map map=new HashMap();
  for (int i=1; i < result.groupCount() + 1; i++) {
    Object key=matchingKeywords.get(i - 1);
    Object value=result.group(i);
    map.put(key,value);
  }
  return map;
}

private Map processEvent ( MatchResult result ) { Map map = new HashMap ( ) ; for ( int i = 1 ; i < result . groupCount ( ) + 1 ; i ++ ) { Object key = matchingKeywords . get ( i - 1 ) ; Object value = result . group ( i ) ; map . put ( key , value ) ; } return map ; }
convert the match into a map . < p > relies on the fact that the matchingkeywords list is in the same order as the groups in the regular expression
