Add java serialize to the sweeper.