implementation of LocalQuestionService class
set the type of the question
use the constants from object factory