protected function _findRelativePath($from, $to)
    {
        $path = dirname($from);
        $to = str_replace(COMPOSER_ROOT.DIRECTORY_SEPARATOR, '', $to);

        while ($path != COMPOSER_ROOT) {
            $path = dirname($path);
            $to = '..'.DIRECTORY_SEPARATOR.$to;
        };

        return $to;
    }