Make injected mappers serializable to avoid problems in clustered environments