Use blueprint and application factory method.
Pass questionnaire filename as parameter to the application factory method.