{
// use a last chance save barrier since we typically call this very
// early in the lifetime of the application before client/server
// sync has occurred
Barrier barrier = new Barrier();
barrier.addBarrierReleasedHandler(new BarrierReleasedHandler() {
@Override
public void onBarrierReleased(BarrierReleasedEvent event)
{
if (switchToProject.length() > 0)
pApplicationQuit_.get().forceSwitchProject(switchToProject);