protected function resolveAssetPath()
    {
        $basename = md5(serialize(array_map(function ($path) {
            return [$path, filemtime($path)];
        }, $this->paths)));

        return Configure::read('Assets.target') . DS . $basename . '.' . $this->type;
    }