I'm saying that there has been an influx of migrants from countries that are dominated by Islam https://en.wikipedia.org/wiki/Islam_in_Syria (the faith the most recent beheading attacks were attributed to).
What each country is doing differently to manage and accommodate refugees I can't say, but it stands to reason that a large influx of people from a wildly different culture will create problems like the attacks we've been seeing.
For at least two of the attacks (2015 with Charlie Hebdo and the teacher a few weeks back), they involved a slight against the Islam faith. This most recent one appears to be related to religious differences given the context.
Edit:
Apparently today's attack was performed by a Tunisian refugee where Islam is the state religion: