setup $this->container to return an instance of a rule entity