Repeated or foiled attacks on refugee centres and mosques are becoming a serious danger to Germanys national security, with the killing of nine people in Hanau in February as the most blatant example.