Form<ContactPerson> contactPersonForm = Form.form(ContactPerson.class);
ContactPerson contactPerson = new ContactPerson();
contactPersonForm = contactPersonForm.fill(contactPerson);
return ok(newForm.render(contactPersonForm, user));
}
<BUG>public static Result edit(Long id) {
User user = User.findByEmail(request().username());
ContactPerson person = ContactPerson.findById(id);</BUG>
Form<ContactPerson> contactPersonForm = Form.form(ContactPerson.class);
contactPersonForm = contactPersonForm.fill(person);

Form<ContactPerson> contactPersonForm = Form.form(ContactPerson.class);
ContactPerson contactPerson = new ContactPerson();
contactPersonForm = contactPersonForm.fill(contactPerson);
return ok(newForm.render(contactPersonForm, user));
}
public static Result edit(Long id) {
ContactPerson person = ContactPerson.findById(id);
if (person == null) return notFound("There is no Contact Person with ID " + id);
User user = User.findByEmail(request().username());
Form<ContactPerson> contactPersonForm = Form.form(ContactPerson.class);
contactPersonForm = contactPersonForm.fill(person);
