Preparing for Confluence 9.0 - EAP out now

We’ve been using a Confluence component com.atlassian.confluence.setup.settings.ConfluenceDirectories with a method getTempDirectory() to obtain the path to the temp directory on the instance. On Confluence 9 we can’t seem to use this component. We’re getting an error that the package com.atlassian.config.util is internal. The ConfluenceDirectories interface has an import on this package.

Has anyone faced this as well? Does anyone know of another way to read the path to the temp directory?