LoginService.Util.getInstance().ping(callback);
}
private void initXsrfProtection(final LoginWindow loginWindow)
{
XsrfTokenServiceAsync xsrf = (XsrfTokenServiceAsync)GWT.create(XsrfTokenService.class);
((ServiceDefTarget)xsrf).setServiceEntryPoint(GWT.getModuleBaseURL() + "xsrf");
xsrf.getNewXsrfToken(new AsyncCallback<XsrfToken>() {
@Override
public void onSuccess(XsrfToken token)
{
ServiceHelper.setXsrfToken(token);
doGetLoggedInUser(loginWindow);