public function getDisplayedIcon( $maxSize = self::DEFAULT_ICON_SIZE )
    {
        if ( empty( $this->displayIcon ) )
        {
            return null;
        }

        $foundSize = 0;
        $foundIcon = null;

        foreach ( $this->displayIcon as $size => $icon )
        {
            if ( $size >= $foundSize && $size <= $maxSize )
            {
                $foundSize = $size;
                $foundIcon = $icon;
            }
        }

        if ( ! empty( $foundIcon ) )
        {
            $replace = array(
                '%version%'     => '0',
                '%reference%'   => '-',
            );

            if ( ! empty( $this->availableVersion ) )
            {
                $replace['%version%'] = $this->availableVersion;
            }
            else if ( ! empty( $this->installedVersion ) )
            {
                $replace['%version%'] = $this->installedVersion;
            }

            if ( ! empty( $this->availableReference ) )
            {
                $replace['%reference%'] = $this->availableReference;
            }
            else if ( ! empty( $this->installedReference ) )
            {
                $replace['%reference%'] = $this->installedReference;
            }

            $foundIcon = strtr( $foundIcon, $replace );
        }

        return $foundIcon;
    }