Changing to hazelcast api from nio api