Use Jackson feature to handle sublass