Move getSimpleResponse helper function to abstract controller, in order to make it available to non-rest controllers.