Manage Java ObjectMapper lifecycle via a plugin

The Java ObjectMapper lifecycle should be managed via a plugin, to prevent OOMEs caused by the Jackson cache.