you don't really need currentETag at all, if history is null is enough here, this way you can rid of the out parameter