private boolean isParameterizedWith(ParameterizedType fieldType, java.lang.reflect.Type type) {
        int numTypeArgs = fieldType.getActualTypeArguments().length;
        if (numTypeArgs > 0)
             return fieldType.getActualTypeArguments()[numTypeArgs - 1] == type;
        return false;
    }
Checks if this field is of type 'path', in which
case some special handling might be needed. Caches the result.
config/src/main/java/com/yahoo/vespa/config/ConfigPayloadApplier.java