link.setContextRelative(false);
            public HtmlComponent createComponent(Object object, Class type) {                String string = (String) object;                                if (! isLink() || string == null) {                    return new HtmlText(string);                }                else {                    HtmlLink link = new HtmlLink();                                        if (getLinkText() == null) {                        link.setText(string);                    }                    else {                        link.setText(getLinkText());                    }                                        // heuristic to distinguish between email and other urls                    if (string.matches("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*$")) {                        link.setUrl("mailto:" + string);                    }                    else {                        link.setUrl(string);                    }                                        return link;                }            }