public function setRouteParameters($routeParameters)
    {
        if (!is_string($routeParameters)) {
            $this->routeParameters = json_encode($routeParameters);
        } else {
            $this->routeParameters = $routeParameters;
        }

        return $this;
    }