// TODO duplicated in ActionForm#initializeFields
private void initializeFields(final RequestContext context, final ObjectAdapter object, final InputField[] formFields, final FormState entryState, final boolean includeUnusableFields) {
for (final InputField formField : formFields) {
final String fieldId = formField.getName();
final ObjectAssociation field = object.getSpecification().getAssociation(fieldId);
final AuthenticationSession session = IsisContext.getAuthenticationSession();
final Consent usable = field.isUsable(session, object, where);
final ObjectAdapter[] options = field.getChoices(object);
FieldFactory.initializeField(context, object, field, options, field.isMandatory(), formField);
final boolean isEditable = usable.isAllowed();