Is there the way to describe the same oauth2 configuration as below but via Java Class? And is it possible to reload it on fly? I have taken this configuration from officia