Update java render code