private static String resolveReference(String s, Map<String, String> contextValues, Properties properties) {
        String referenceKey = s.substring(1);
        Object referencedValue = properties.get(referenceKey, contextValues);
        if (referencedValue == null)
            throw new IllegalArgumentException("Could not resolve query parameter reference '" + referenceKey +
                                               "' used in an embed() argument");
        return referencedValue.toString();
    }
A class which knows how to convert an Object value to a tensor of a given type.

@author bratseth
container-search/src/main/java/com/yahoo/search/schema/internal/TensorConverter.java