Port the code from the javafx gui mapping project here (all of the data related code)