/**
  * Load the walk instance we're adding/editing and returns its values as an array
  * If this is a new walk instance, set some defaults
  */
 public function getWalkInstance()
 {
     // Load or create the walk instance if not already done
     if (!isset($this->wi)) {
         $factory = SWG::walkInstanceFactory();
         if (JRequest::getInt("walkinstanceid", 0, "get")) {
             $this->wi = $factory->getSingle(JRequest::getInt("walkinstanceid", 0, "get"));
         } else {
             if (JRequest::getInt("walkid", 0, "get")) {
                 $this->wi = $factory->createFromWalk($factory->getSingle(JRequest::getInt("walkid", 0, "get")));
             } else {
                 $this->wi = new WalkInstance();
             }
         }
     }
     return $this->wi->valuesToForm();
 }