case SPNEGO: authScheme = AuthScheme.SPNEGO; break;
case BASIC: authScheme = AuthScheme.BASIC; break;
default: throw new RuntimeException("Scheme " + this.scheme + " not supported by the UrlFetch WS backend.");
}
builder.setRealm(
(new RealmBuilder())
.setScheme(authScheme)
.setPrincipal(this.username)
.setPassword(this.password)
.setUsePreemptiveAuth(true)
.build()