{
lastSubPlace = currentToken;
}
else if(lastSubPlace!=null)
{
placeManager.revealPlace(new PlaceRequest(lastSubPlace));
}
if(!hasBeenRevealed)
{
hasBeenRevealed = true;
subsysStore.loadSubsystems("default", new SimpleCallback<List<SubsystemRecord>>() {
@Override
public void onSuccess(List<SubsystemRecord> existingSubsystems) {
getView().updateFrom(existingSubsystems);
// chose default view if necessary
String preference = NameTokens.serverConfig.equals(currentToken) ? NameTokens.DataSourcePresenter : currentToken;
final String[] defaultSubsystem = SubsystemMetaData.getDefaultSubsystem(
preference, existingSubsystems
);
placeManager.revealPlace(new PlaceRequest(defaultSubsystem[1]));
}
});