Comment from @samueltardieu at irc: Don't use redundant variable. I can use offlineCacheDirectory.getPath instead.