No need for anything fancy. Jusr check for an empty collection AFTER deserialization, and put in your instance.....