I also miss input validation here. What if response.getContent() is not what you expect?