private String getDefaultPromotionPathCoordinateTextFieldContent() {
   UUID promotionPathUUID =
       AppContext.getAppConfiguration().getCurrentWorkflowPromotionPathUuidAsUUID();
   if (promotionPathUUID == null) {
     return "";
   }
   try {
     return OTFUtility.getConceptVersion(promotionPathUUID).getPreferredDescription().getText();
   } catch (IOException | ContradictionException e) {
     return "";
   }
 }
  public void setComponent(int componentOrConceptNid) {
    ComponentVersionBI componentVersion = OTFUtility.getComponentVersion(componentOrConceptNid);
    if (componentVersion == null) {
      // May be a concept
      componentVersion = OTFUtility.getConceptVersion(componentOrConceptNid);
    }

    if (componentVersion == null) {
      String msg = "No componentOrConcept or concept retrieved for nid " + componentOrConceptNid;
      LOG.error(msg);
      throw new RuntimeException(msg);
    }

    setComponent(componentVersion);
  }
  public CompositeSearchResult(ComponentVersionBI matchingComponent, float score) {
    this.matchingComponents.add(matchingComponent);
    this.bestScore = score;
    // matchingComponent may be null, if the match is not on our view path...
    if (matchingComponent == null) {
      throw new RuntimeException(
          "Please call the constructor that takes a nid, if matchingComponent is null...");
    } else {
      this.matchingComponentNid_ = matchingComponent.getNid();
    }
    this.containingConcept =
        OTFUtility.getConceptVersion(matchingComponent.getAssociatedConceptNid());

    // TODO - we need to evaluate / design proper behavior for how view coordinate should work with
    // search
    // default back to just using this for the moment, rather than what OTFUtility says.
    // this.containingConcept = OTFUtility.getConceptVersion(matchingComponent.getConceptNid(), vc);
  }