Gson gson = new GsonBuilder().create();
final StackOverflowEntity soEntity = gson.fromJson(stringWriter.toString(), StackOverflowEntity.class);
System.err.println("--------------------------");
System.err.println(soEntity);
System.err.println("--------------------------");
final StackOverflowQuestionEntity questionEntity = new StackOverflowQuestionEntity();
questionEntity.setQuestionId(questionId);
final SOItem soItem = soEntity.getItems()[0];
questionEntity.setTitle(soItem.getTitle());
questionEntity.setLink(soItem.getLink());
questionEntity.setAnswered(soItem.isAnswered());
questionEntity.setViewCount(soItem.getViewCount());
questionEntity.setAnswerCount(soItem.getAnswerCount());
return questionEntity;
}