Use entity API in ResponseHanlder::__construct().