/**
  * Checks whether $routeValues contains elements which correspond to this Dynamic Route Part.
  * If a corresponding element is found in $routeValues, this element is removed from the array.
  *
  * @param array $routeValues An array with key/value pairs to be resolved by Dynamic Route Parts.
  * @return boolean TRUE if current Route Part could be resolved, otherwise FALSE
  */
 public function resolve(array &$routeValues)
 {
     $this->value = NULL;
     if ($this->name === NULL || $this->name === '') {
         return FALSE;
     }
     $valueToResolve = $this->findValueToResolve($routeValues);
     if (!$this->resolveValue($valueToResolve)) {
         return FALSE;
     }
     $routeValues = Arrays::unsetValueByPath($routeValues, $this->name);
     return TRUE;
 }