private void loadOpenShiftData() {
    final ProjectConfigDto projectConfig = appContext.getCurrentProject().getRootProject();
    view.setApplicationName(projectConfig.getName());
    view.show();

    osService
        .getProjects()
        .then(
            new Operation<List<Project>>() {
              @Override
              public void apply(List<Project> projects) throws OperationException {
                if (projects == null || projects.isEmpty()) {
                  return;
                }
                osProjects.clear();
                osProjects.addAll(unmodifiableList(projects));
                view.setProjects(osProjects);
              }
            })
        .then(
            osService
                .getImageStreams("openshift", null)
                .then(
                    new Operation<List<ImageStream>>() {
                      @Override
                      public void apply(List<ImageStream> streams) throws OperationException {
                        if (streams == null || streams.isEmpty()) {
                          return;
                        }

                        osImageStreams = unmodifiableList(streams);

                        final List<String> imageNames =
                            Lists.transform(
                                osImageStreams,
                                new com.google.common.base.Function<ImageStream, String>() {
                                  @Override
                                  public String apply(ImageStream input) {
                                    return input.getMetadata().getName();
                                  }
                                });

                        view.setImages(imageNames);
                        view.setLabels(Collections.<KeyValue>emptyList());
                      }
                    }));
    applicationManager
        .getApplicationNamesByNamespaces()
        .then(
            new Operation<List<Pair<String, String>>>() {
              @Override
              public void apply(List<Pair<String, String>> arg) throws OperationException {
                osApplications.clear();
                osApplications.addAll(arg);
              }
            });
  }
  private void reset() {
    osProjects.clear();
    osApplications.clear();
    osImageStreams = null;
    osAppName = null;
    osActiveStreamTag = null;
    projectRemotes = null;

    view.setDeployButtonEnabled(false);
    view.setLabels(Collections.<KeyValue>emptyList());
    view.setEnvironmentVariables(Collections.<KeyValue>emptyList());
    view.setApplicationName(null);
    view.hideApplicationNameError();
    view.hideProjectNameError();
    view.hideLabelsError();
    view.hideVariablesError();
    view.setOpenShiftProjectName(null);
    view.setOpenShiftProjectDisplayName(null);
    view.setOpenShiftProjectDescription(null);
    view.setMode(CREATE_NEW_PROJECT);
    view.setImages(Collections.<String>emptyList());
    view.setProjects(Collections.<Project>emptyList());
  }