public function getNextState($stateValue=null, $configInsteadOfValue=false)
	{
		if ($stateValue === null) {
			$stateValue = $this->owner->{$this->stateAttribute};
		} else {
			$this->stateExists($stateValue, true);
		}

		if ($this->hasNextState()) {
			$nextConfig = $this->stateConfig[$this->cacheIndexMap[$stateValue] + 1];
			return $configInsteadOfValue ? $nextConfig : $nextConfig['value'];
		} else {
			return null;
		}
	}