ServerResponse not setting entityClass

The constructor of ServerResponse that takes an entity as an argument
doesn't set the entityClass.