Target target = new FieldTarget(field);
target.config(this);
this.targets.put(target.getName(), target);
} else if (field.getModelField() instanceof BaseReference) {
MultiModelItem item = multiModel.getItems().get(field.getName());
Target target = new ModelTarget(field.getName(), item);
target.config(this);
this.targets.put(target.getName(), target);
} else {
Target target = new FieldTarget(field);
target.config(this);
this.targets.put(target.getName(), target);
}
return this;
}