riverConfig.addScrapingRule(sessionId,null, patternMap, scrapingRuleMap);
InputStream is = null;
try {
is = ResourceUtil
.getResourceAsStream("html/fess_codelibs_org.html");
ResponseData responseData = new ResponseData();
responseData.setSessionId(sessionId);
responseData.setUrl(url);
responseData.setResponseBody(is);
responseData.setCharSet("UTF-8");
ResultData resultData = new ResultData();
transformer.storeData(responseData, resultData);
} finally {
IOUtils.closeQuietly(is);