public StackId getStackId() {
    if (null == stack) {
      return null;
    }

    return new StackId(stack.getStackName(), stack.getStackVersion());
  }
Sets the version on this repository version entity. If the version is
confirmed as correct, then the called should also set
{@link #setResolved(boolean)}.

@param version
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java