How to create TeamArea hierarchy using RTC API

One answer

see the ITeamAreaHierarchy object in the javadoc.
the teamareahierarchy can be found off the Projectarea
the teamareahierarchy can be found off the Projectarea
getTeamAreaHierarchy
ITeamAreaHierarchy getTeamAreaHierarchy()Returns the team area hierarchy that defines the relationship between the team areas located inside in this project area.