/**
  * Method that will construct a new instance that uses specific type as the root type for
  * serialization, instead of runtime dynamic type of the root object itself.
  */
 public ObjectWriter withType(Class<?> rootType) {
   return withType(_config.constructType(rootType));
 }