protected void processItem(ResultSet rs) throws SQLException, IOException {
		
		int cmcId = rs.getInt("p_page_id");

		String url = null;
		String text = null;
		
        String title = rs.getString("p_title");
        String content = rs.getString("p_content");
		
		log.info("Parsing item: " + cmcId);
		
		// Need to search text in BLOB/CLOB
		if (content != null) {
		    
			HtmlCleaner cleaner = new HtmlCleaner();
			TagNode root = cleaner.clean(content);
			TagNode[] anchors = root.getElementsByName("a", true);
			
			
			for (int i = 0; i < anchors.length; i++) {
				
				url = anchors[i].getAttributeByName("href");
				if (url != null) {
					url = url.trim();
				}
				
				//log.info("Got URL: " + url);
				
				text = cleaner.getInnerHtml(anchors[i]);
				if (text != null) {
					text = stripWhitespace(text);
				}
				
				if (url != null && url.length() > 0 && !url.startsWith("#")) {
					
			    	csvBuffer.setLength(0);
			    	
                    csvBuffer.append("\"" + cmcId + "\"");
                    csvBuffer.append(",");
                    csvBuffer.append("\"" + title + "\"");
                    csvBuffer.append(",");
			    	csvBuffer.append("\"" + url + "\"");
                    csvBuffer.append(",");
                    csvBuffer.append("\"" + text + "\"");
			        
			        csvOutput.println(csvBuffer.toString());
				}				
			}
		}
	}