com.twitter.common.zookeeper has a mechanism for running leadership elections with groups. If this particular instance has been elected leader it will allow Some to passthrough, otherwise it'll transform it to a None.