//test
public static void main(String[] args) {
PageDAO pageDAO = new PageDAOImpl();
PageTextDAO pageTextDAO = new PageTextDAOImpl();
Page page = pageDAO.findById(927);
PageText ptext = pageTextDAO.findByPage(page);
String text = ptext.getTextAsString();
WikitextStripper stripper = new WikitextStripper();
//stripper.setLeaveHeadings(true);
System.out.println(text);
text = stripper.strip(text);
System.out.println("\n\n~~~~~~~~\n\n");