Fixing stackoverflow caused in the hashcode of recursive pojos metadata model