ISPN-4559 Replace fails with cache loader

https://issues.jboss.org/browse/ISPN-4559
https://issues.jboss.org/browse/ISPN-4649
if you don't like the ```instanceof```, also cross my mind to use an enum with ```READ```, ```WRITE```, ```DELTA_WRITE```, ```CONDITIONAL_WRITE``` and each visitMethod will set the correct type when invoke this method.