BTW, what is the reason to cast the threadId to int? https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/util/ThreadUtil.java#L22