Fix for recursion problem with jackson - stackoverflow question.