Patch up some issues with the java exporter.