RegExp regExp = RegExp.compile(PREFIX_PATTERN, "gm");
while (true) {
MatchResult matcher = regExp.exec(getQuery());
if (matcher == null)
break;
queryPrefixes.put(matcher.getGroup(2), new Prefix(matcher.getGroup(1), matcher.getGroup(2)));
}
return queryPrefixes;
}