Changed cache in java