ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
if this is synchronized, shouldn'it contain also a check to see if the operations are still in need to be applied?