private function getNewContent($content, array $newBundleList)
    {
        $contentData = $this->getContentData($content);

        $beforePart = substr($content, 0, $contentData['startStringPos']);
        $endPart = substr($content, $contentData['endStringPos']);

        return $beforePart.PHP_EOL.implode(','.PHP_EOL, $newBundleList).PHP_EOL.$endPart;
    }