return electionService.start() .thenCompose(s -> { PartitionManagementService managementService = new DefaultPartitionManagementService( clusterMembershipService, communicationService, .thenCompose(v -> systemElectionService.start() .thenCompose(v2 -> systemSessionIdService.start()) .thenApply(v2 -> new DefaultPartitionManagementService( clusterMembershipService, communicationService,