public function getActualAttributeName(Entity $entity, $name, $hint = '', $force = false)
    {
        if ($entity->hasAttributeByName($name) || $force) {
            if (!$entity->hasAttributeByName($name . $hint)) {
                return [$name, $hint];
            }

            $append = 1;

            while ($entity->hasAttributeByName($name . $append . $hint)) {
                $append++;
            }

            return [$name . $append, $hint];
        }

        return [$name, ''];
    }