@SuppressWarnings("unchecked")
    private static <T> Serializer<T> prepareSerializer(final Serializer<T> specificSerializer, final ProcessorContext context, final boolean isKey, final String name) {
        final Serializer<T> serializerToUse;
        if (specificSerializer == null) {
            serializerToUse = (Serializer<T>) (isKey ? context.keySerde().serializer() : context.valueSerde().serializer());
        } else {
            serializerToUse = specificSerializer;
            initNullableSerializer(serializerToUse, new SerdeGetter(context));
        }
        return serializerToUse;
    }
If a component's serdes are Wrapping serdes, then they require a little extra setup
to be fully initialized at run time.
streams/src/main/java/org/apache/kafka/streams/kstream/internals/WrappingNullableUtils.java