Add recursive method to extract datas from pojo