Moved self link code into representation class to allow self links to flow to child objects