Obtaining config directory within a Java Service

I am in need to obtain the config directory of my package. I know of the ServerAPI.getPackageConfigDir method but this requires me to know my package name making my Java Service dependent on my package name.

Is there an API call to obtain the package name in which my Java Service resides, so I can use ServerAPI.getPackageConfigDir without hard coding the package name in code.

You may use the Service.getPackageName() to get the name of the package.


That’s what I needed. Thanks for the help…