public static function getSupportedExtensions($extension)
    {
        foreach (static::$_registry as $registered) {
            if (in_array($extension, (array) $registered['extensions'])) {
                return $registered['extensions'];
            }
        }

        throw new ErrorException("The following extension is not handled: {$extension}");
    }