Personal taste but I'd say this is a bit of a "trainwreck" (see http://bit.ly/1f0u8pI)

Suggest extracting variable at "Paths.get(getCacheDirectory(), DEFAULT_COVARIATE_SUB_DIR)"