made Parser::getRelation public to make test easier