/** * Throws an exception if this is not a link. */ public T resolveLink() throws ReadLinkException { String path; path = readLink(); if (path.startsWith(Filesystem.SEPARATOR_STRING)) { return getRoot().node(path.substring(1), null); } else { return (T) getParent().join(path); } }