/**
  * Try to get current sport id
  * @return int 
  */
 protected function findSportId()
 {
     if (!empty($this->XML->sportType)) {
         $Name = (string) $this->XML->sportType;
         $Id = SportFactory::idByName($Name);
         if ($Id > 0) {
             return $Id;
         } else {
             switch ($Name) {
                 case 'Run':
                     $Name = 'Laufen';
                     break;
                 case 'Bike':
                 case 'Mountain Bike':
                     $Name = 'Radfahren';
                     break;
                 case 'Swim':
                     $Name = 'Schwimmen';
                     break;
                 default:
                     $Name = 'Sonstiges';
             }
             $Id = SportFactory::idByName($Name);
             if ($Id > 0) {
                 return $Id;
             }
         }
     }
     return Configuration::General()->runningSport();
 }