hydra-spring/src/main/java/de/escalon/hypermedia/spring/hydra/LinkListSerializer.java
private String getPropertyOrClassNameInVocab(@Nullable String currentVocab, String propertyOrClassName, String
            vocabulary, String vocabularyPrefixWithColon) {
        Assert.notNull(vocabulary);
        String ret;
        if (vocabulary.equals(currentVocab)) {
            ret = propertyOrClassName;
        } else {
            ret = vocabularyPrefixWithColon + propertyOrClassName;
        }
        return ret;
    }
private String getPropertyOrClassNameInVocab(@Nullable String currentVocab, String propertyOrClassName, String
            vocabulary, String vocabularyPrefixWithColon) {
        Assert.notNull(vocabulary);
        String ret;
        if (vocabulary.equals(currentVocab)) {
            ret = propertyOrClassName;
        } else {
            ret = vocabularyPrefixWithColon + propertyOrClassName;
        }
        return ret;
    }
Gets property or class name in the current context, either without prefix if the current vocab is the given
vocabulary, or prefixed otherwise.

@param currentVocab              to determine the current vocab
@param propertyOrClassName       name to contextualize
@param vocabulary                to which the given property belongs
@param vocabularyPrefixWithColon to use if the current vocab does not match the given vocabulary to which the name belongs, should end
with colon
@return property name or class name in the currenct context