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);
    }
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 ) ; }
change elementId into topicId if there is no topicId in key definition.