Please convert this into a Log method, and use something like throw log.invalidCacheState(String)