final boolean authorizationHeader = provider.optBoolean(
JSONOAuth2Persister.AUTHORIZATION_HEADER, false);
final boolean urlParameter = provider.optBoolean(JSONOAuth2Persister.URL_PARAMETER, false);
String authorizationUrl = endpoints.optString(JSONOAuth2Persister.AUTHORIZATION_URL, null);
if ((this.authority != null) && (authorizationUrl != null)) {
authorizationUrl = authorizationUrl.replace("%authority%", this.authority.getAuthority());
authorizationUrl = authorizationUrl.replace("%contextRoot%", this.contextRoot);
authorizationUrl = authorizationUrl.replace("%origin%", this.authority.getOrigin());