we need a Java API variant, that takes nullable `role: String`, see ClusterSingletonManager