Stanislovas Goštautas was the last male member of the Goštautai family and, according to law regarding childless widows, the majority of his possessions were inherited by Sigismund I the Old, Grand Duke of Lithuania. On 15 June 1543, Sigismund transferred the property to his son Sigismund II Augustus who visited Hieraniony in October 1543 to take over the estate. It is likely that it was when Barbara and Sigismund Augustus became lovers, though there is no evidence of the affair until after the death of Sigismund Augustus' first wife.