default void registerSerializationHints(final RuntimeHints hints, final Object... entries) {
        Arrays.stream(entries).forEach(el -> {
            if (el instanceof final TypeReference tr) {
                hints.serialization().registerType(tr);
            }
            if (el instanceof final Class clazz) {
                hints.serialization().registerType(clazz);
            }
        });
    }
Register serialization hints.

@param hints   the hints
@param entries the entries
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/nativex/CasRuntimeHintsRegistrar.java