protected function getEntityId($blockType, $config, $params = array())
    {
        $entityId = null;
        if ($blockType === "account" && isset($params["name"])) {
            $entityId = md5($params["name"]);
        } elseif ($blockType === "email" && isset($params["email"])) {
            $entityId = md5($params["email"]);
        } elseif ($blockType === "ip") {
            $entityId = $this->getIp($config);
        }
        return $entityId;
    }