private static ConfModel readConf(String confFilename)
			throws JsonParseException, JsonMappingException, IOException {

		// ObjectMapperを作成
		ObjectMapper mapper = new ObjectMapper();
		// mydata.jsonからルートノードを取得
		JsonNode rootNode = mapper.readValue(new File(confFilename),
				JsonNode.class);

		JsonNode yahooJapanNode = rootNode.get("YahooJapan");
		YahooAuctionModel yahooAuctionModel = new YahooAuctionModel();
		yahooAuctionModel.setAffiliatId(yahooJapanNode.get("affiliate_id")
				.getTextValue());
		yahooAuctionModel.setApplicationKey(yahooJapanNode.get(
				"application_key").getTextValue());

		JsonNode twitterNode = rootNode.get("Twitter");
		TwitterModel twitterModel = new TwitterModel();
		twitterModel.setAccessToken(twitterNode.get("access_token")
				.getTextValue());
		twitterModel.setAccessToken_secret(twitterNode.get(
				"access_token_secret").getTextValue());
		twitterModel.setConsumerKey(twitterNode.get("consumer_key")
				.getTextValue());
		twitterModel.setConsumerSecret(twitterNode.get("consumer_secret")
				.getTextValue());

		JsonNode searchQueryNode = rootNode.get("SearchQuery");
		SearchQuery searchQuery = new SearchQuery();
		searchQuery.setOrder(searchQueryNode.get("order").getTextValue());
		searchQuery.setPage(searchQueryNode.get("page").getTextValue());
		searchQuery.setSort(searchQueryNode.get("sort").getTextValue());
		searchQuery.setQuery(searchQueryNode.get("query").getTextValue());

		ConfModel confModel = new ConfModel();
		confModel.setTwitterModel(twitterModel);
		confModel.setYahooAuctionModel(yahooAuctionModel);
		confModel.setSearchQuery(searchQuery);

		return confModel;
	}