I have finally converted the xml/html builders over to java, and I fixed an obvious null ptr bug.