Get ref to Preferences class of a given spark plugin

I have been given a spark plugin jar file that i put into my plugins directory. (don’t have src code of this spark plugin ,onlt the jar file)

i was asked to change (at run time via java code) some preferences of this plugin (a field that holds integer value).

I wonder if Spark provides an api to access plugins preferences at runtime ?

is that possible ? can i get a reference to my plugin Preferences class ?

if yes how can i do that ?