so when it's either eviction or passivation then use the Flag.DELTA_WRITE flag. Doesn't it mean we always use it when there's a cacheloader involved? And if there's no cacheloader then no point in adding the Flag.SKIP_CACHE_LOAD flag, so the whole "if/else" should be replaced with 
"flags[1] = Flag.DELTA_WRITE"
that's if I'm not missing something, of course :-)