final RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.POST, "j_security_check");
requestBuilder.setHeader("Content-Type","application/x-www-form-urlencoded");
requestBuilder.setHeader("X-Requested-With","XMLHttpRequest");
try {
view.setWaiting(true);
requestBuilder.sendRequest(createLoginPostData(login), new RequestCallback() {
@Override
public void onResponseReceived(final Request request, final Response response) {
final int statusCode = response.getStatusCode();
if(statusCode == Response.SC_OK) {