Aren't you passing the deployMode and clusterManager in the wrong order in here? That's one of the problems with these being Ints, no type-checking.