public Optional<ControllerId> getId() { short nodeId = this.syncService.getLocalNodeId(); if(nodeId == ClusterConfig.NODE_ID_UNCONFIGURED) return Optional.absent(); else return Optional.of(ControllerId.of(nodeId)); }