ISPN-4559 Replace fails with cache loader

https://issues.jboss.org/browse/ISPN-4559
https://issues.jboss.org/browse/ISPN-4649
I think that maybe it is too much complex since it depends on the cache configuration (tx, non-tx, distribute, local...)