public function changelogAction(Request $request, $canonicalName)
    {
        $kernel = $this->get('kernel');
        $em = $this->getDoctrine()->getManager();
        $application = $em
            ->getRepository('CanalTPSamCoreBundle:Application')
            ->findOneByCanonicalName($canonicalName);

        if (is_null($application)) {
            throw $this->createNotFoundException('Application (' . $canonicalName . ') not found.');
        }
        try {
            $path = $kernel->locateResource('@' . $application->getBundleName() . '/CHANGELOG.md');
        } catch (\InvalidArgumentException $e) {
            throw $this->createNotFoundException('Changelog file for ' . $application->getName() . ' not found.');
        }
        return new BinaryFileResponse($path);
    }