@Override
protected void onAttach() {
super.onAttach();
registration = authenticationManager
.addAuthenticationStateChangedEventHandler(new AuthenticationStateChangedEventHandler() {
@Override
public void onAuthenticationStateChanged(
AuthenticationStateChangedEvent event) {
AuthenticationBar.this.update(event
.getAuthenticationState());