Refactor CsarUtil::addComponentToCache