code: private static URI normalizeHrefValue(final URI keyName, final String tail) {
          if (keyName.getFragment() == null) {
              return toURI(keyName + tail.replaceAll(SLASH, SHARP));
          }
          return toURI(keyName + tail);
      }
docs: change elementId into topicId if there is no topicId in key definition.