public boolean isSamePath(WebLocator el, String path) { return el.currentElement != null && (el.getCurrentElementPath().equals(path)); }