public function replaceObject($service_id, $callable, $is_factory = false)
	{
		if ( !isset($this->container[$service_id]) ) {
			throw new \InvalidArgumentException('Service "' . $service_id . '" not found');
		}

		$backup = $this->container->raw($service_id);
		unset($this->container[$service_id]);
		$this->container[$service_id] = $is_factory ? $this->container->factory($callable) : $callable;

		return $backup;
	}