}
}
protected BindingResult performDataBinding(final WebScriptRequest request, final Command command,
final Object commandObject) {
final WebRequestDataBinder dataBinder = new WebRequestDataBinder(commandObject);
dataBinder.setIgnoreInvalidFields(command.ignoreInvalidFields());
dataBinder.setIgnoreUnknownFields(command.ignoreUnknownFields());
if (command.allowedFields().length > 0) {
dataBinder.setAllowedFields(command.allowedFields());
}
dataBinder.bind(new WebScriptWebRequest(request));
return dataBinder.getBindingResult();
}