Refactoring: moved setResponse and getRepsonse to shared base classs