Which plugin to be used for com.atlassian.confluence.setup?

Which plugin to be used for com.atlassian.confluence.setup. Need to execute below statements to get the path for confluence home directory :slight_smile:

BootstrapManager bootstrapManager = new DefaultBootstrapManager();
String confluenceHome = bootstrapManager.getWebAppContextPath() ;

Getting below error while using com.atlassian.confluence.setup
cannot find symbol
[ERROR] symbol: class setup
[ERROR] location: package com.atlassian.confluence

If you’re after the confluence home - take a look at sal-api.