static Object convertToSubstitutionString(Object value) {
        if (value == null) return value;
        if (value.getClass() != String.class) return value;
        SubstituteString substituteString = SubstituteString.create((String)value);
        if (substituteString == null) return value;
        return substituteString;
    }
Returns this value, or its corresponding substitution string if it contains substitutions
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfile.java