protected ObjectWriter getTypeWriter() {
        if (typeWriter == null) {
            typeWriter = getObjectMapper().writerFor(typeToSerialize).with(prettyPrinter);
        }
        return typeWriter;
    }
Gets object mapper and builds on if uninitialized.

@return the object mapper
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/BaseJacksonSerializer.java