public function createTrackedObject(ResourceInterface $resource)
    {
        $tracked = new TrackedObject();
        $tracked->setResource($resource);
        $tracked->setChecksum($resource->getChecksum());

        if(is_null($tracked->getID())){
            $tracked->setID(PathUtil::createPathID($resource->getResource()));
        }
        return $tracked;
    }