For https://github.com/aerogear/aerogear-unifiedpush-server/pull/529 we do a merge(), which loads actual state from the database.
One option for improvements could be using getReference(), instead of a merge()