// Load bean based on the given PrimaryKey
employee = (Employee) broker.getObjectByIdentity(new Identity(employee, broker));
// Load form descriptor
FormInstance form = new FormInstance("forms/employee.xml");
// Load form binding
form.createBinding("forms/employee-binding.xml");
// Load the Bean to the form
form.load(employee);
// Let Cocoon Forms handle the form
form.show("form/employee");
// Update the Bean based on user input