Added 'setEntity' method to BodySegment, currently unused