private boolean isLabelListValid() {
   List<KeyValue> labels = view.getLabels();
   if (labels.isEmpty()) {
     view.hideLabelsError();
     return true;
   }
   for (KeyValue keyValue : labels) {
     if (!OpenshiftValidator.isLabelNameValid(keyValue.getKey())
         || !OpenshiftValidator.isLabelValueValid(keyValue.getValue())) {
       view.showLabelsError(locale.invalidLabelsError(), locale.invalidLabelsDetailError());
       return false;
     }
   }
   view.hideLabelsError();
   return true;
 }
  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());
  }