refactor HttpPostDataRetriever.java