protected static function getModelKey($id, DynamoDbModel $model)
    {
        if (is_array($id)) {
            $key = [];
            foreach ($id as $name => $value) {
                $specific_key = static::getSpecificDynamoDbKey($model, $name, $value);
                foreach ($specific_key as $keyName => $keyValue) {
                    $key[$keyName] = $keyValue;
                }
            }

            return $key;
        }

        return static::getDynamoDbPrimaryKey($model, $id);
    }