Refactoring and reformatting Hazelcast code