Fixed batik class loader leak

With this pull request, the utah demo for example is able to reload in tomcat without running into the perm space problem.