public function getRelationNames() {
    $result = [];
    $relations = $this->getRelations();
    foreach ($relations as $curRelation) {
      $result[] = $curRelation->getOtherRole();
    }
    return $result;
  }