}
@Override
public void setBasicAuthorization(final String username, final String password) {
try {
BasicAuthentication auth = new BasicAuthentication(new Realm() {
@Override public String getPrincipal() { return username; }
@Override public String getId() { return null; }
@Override public String getCredentials() { return password; }
});