ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
I didn't get this, sorry! But I am adding a comma at the end :)