authorizationUrl = authorizationUrl.replace("%contextRoot%", this.contextRoot);
authorizationUrl = authorizationUrl.replace("%origin%", this.authority.getOrigin());
authorizationUrl = authorizationUrl.replace("%scheme%", this.authority.getScheme());
}
String tokenUrl = endpoints.optString(TOKEN_URL, null);
if (this.authority != null && tokenUrl != null) {
tokenUrl = tokenUrl.replace("%authority%", this.authority.getAuthority());
tokenUrl = tokenUrl.replace("%contextRoot%", this.contextRoot);
tokenUrl = tokenUrl.replace("%origin%", this.authority.getOrigin());
tokenUrl = tokenUrl.replace("%scheme%", this.authority.getScheme());