if (isContextRelative()) { link.setModule(null); link.setModuleRelative(false); }
link.setModuleRelative(isModuleRelative()); link.setContextRelative(isContextRelative());
            private HtmlLink getLink(Object usedObject) {                HtmlLink link = new HtmlLink();                String url;                if (getDestination() != null) {                    ViewDestination destination = getContext().getViewState().getDestination(                            getDestination());                    if (destination != null) {                        link.setModule(destination.getModule());                        url = destination.getPath();                    } else {                        url = "#";                    }                } else {                    if (getLinkFormat() != null) {                        url = getLinkFormat();                    } else {                        url = "#";                    }                }                link.setUrl(RenderUtils.getFormattedProperties(url, usedObject));                if (isContextRelative()) {                    link.setModule(null);                    link.setModuleRelative(false);                }                return link;            }