The Java2Html library is Open Source under the GPL or CPL1.0 license (whichever of both fits your needs).