cleaned up java emitter