public void setOwnerStackId(StackId stackId) {
    ownerStackId = (null == ownerStackId) ? stackId : ownerStackId;
  }
Sets the stack id that owns this upgrade pack.  This may be set only once.

@param stackId
         the owner stack id
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/UpgradePack.java