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

		String url = null;
        String width = null;
        String height = null;
//		String text = null;
		
        String title = rs.getString("p_title");
        String content = rs.getString("p_content");
		
		log.debug("Parsing item: " + cmcId);
		
		// Need to search text in BLOB/CLOB
		if (content != null) {
		    
			HtmlCleaner cleaner = new HtmlCleaner();
			TagNode root = cleaner.clean(content);
			TagNode[] elements = root.getElementsByName("immcore:embedsite", true);
			
			for (int i = 0; i < elements.length; i++) {
				
                url = elements[i].getAttributeByName("url");
                if (url != null) {
                    url = url.trim();
                }
                
                width = elements[i].getAttributeByName("width");
                if (width != null) {
                    width = width.trim();
                }
                
                height = elements[i].getAttributeByName("height");
                if (height != null) {
                    height = height.trim();
                }
                
				log.debug("[" + cmcId + "] Got URL : " + url);
				
//				text = cleaner.getInnerHtml(elements[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("\"http://" + WEBSITE_HOST + "/default.aspx?page=" + cmcId + "\"");
                    csvBuffer.append(",");
                    csvBuffer.append("\"" + url + "\"");
                    csvBuffer.append(",");
                    csvBuffer.append("\"" + width + "\"");
                    csvBuffer.append(",");
                    csvBuffer.append("\"" + height + "\"");
			        
			        csvOutput.println(csvBuffer.toString());
				}				
			}
		}
	}