protected function policyFactory($entity): PolicyInterface
	{
		$entityClass = is_object($entity) ? get_class($entity) : $entity;

		if(!isset($this->policies[$entityClass]))
		{
			throw new AuthorizerException(vsprintf('There is no authorization policy registered for [ %s ] entities.', [$entityClass]));
		}

		return $this->container->get($this->policies[$entityClass]);
	}