well it depends on what you named him, and what building you want to build him.
in specialstructers.xml under R_Ground_Barracks as an example there is the following:
Notice the jedi entry? those are my jedi that i created for my mod. you will need to add a line like this, but for your new hero unit, under the appropriate building.