public function setParameters($value = null, $appendParameter = true){
			
		//check if the $urlComponentsArray has more than two element
		$this->parameters = (count($this->urlComponentsArray) > 2) ? ArrayHelper::slice($this->urlComponentsArray, 2)->get() : array();

		//check if there is an additonal parameter to add to parameters array
		if($value !== null){

			//check if this parameter is to be prepended or appended
			if($appendParameter === true){

				//append
				$this->parameters[] = $value;

			}

			//prepend to the parameters array
			else{

				//prepend
				array_unshift($this->parameters, $value);

			}

		}

		//return this class instance
		return $this;

	}