@Inject
private Caller<AuthenticationService> authenticationService;
public void observer(@Observes NavigationEvent event) {
final PageRequest pageRequest = event.getPageRequest();
try {
authenticationService.call(new RemoteCallback<Boolean>() {
@Override
public void callback(Boolean response) {
if (!response) {