Editing a submission using java