add separate method to write the body of objectmapper mapping