String.format("Error registering security listener: %s", e.getMessage()),
e));
}
// use HttpEventListener for lifecycle events
request.setEventListener(new HttpEventListenerWrapper(request.getEventListener(), true) {
public String reason;
@Override
public void onConnectionFailed(Throwable ex) {