grabbag of Java stuff to make life less miserable.