*/
public class AsynchronousHttpClientFactory {
@SuppressWarnings("unchecked")
public DisposableHttpClient createClient(final URI serverUri, final AuthenticationHandler authenticationHandler) {
final HttpClientOptions options = new HttpClientOptions();
options.setRequestPreparer(new Effect<Request>() {
@Override
public void apply(final Request request) {
authenticationHandler.configure(request);
}
});