@SuppressWarnings("unchecked")
public Query parse(final HashMap<ConfigurationKey, Object> keys, final String query)
throws QueryNodeException {
final KeywordQueryParser parser = new KeywordQueryParser();
if (keys != null) {
final KeywordQueryConfigHandler config = new KeywordQueryConfigHandler();
for (Entry<ConfigurationKey, Object> key: keys.entrySet()) {
config.set(key.getKey(), key.getValue());
}
parser.setQueryConfigHandler(config);
}
return parser.parse(query, SirenTestCase.DEFAULT_TEST_FIELD);
}