Add a method to write to the userdata to UserData.java and IUser.java.