for (Iterator it = bookmarks.iterator(); it.hasNext();) {
Bookmark bookmark = (Bookmark) it.next();
if (bookmark.pattern.matcher(uri).matches()) {
String expression = bookmark.value;
DefaultVariables variables = new DefaultVariables(uri, null, title);
FunctionMapper functionMapper = StaticFunctionMapper.getDefault();
String name = (String) eval.evaluate(expression, String.class, variables, functionMapper);
name = name.trim();
if (name.length() > 0) {
pluckerDocument.addBookmark(name, uri);
}