Tasks have no children to exclude. Instead of calling ObjectMapper, the Task can simply be returned.