WRITING migration java tutorial