// un-bind editor values, validate the input
UiContext uiContext = new UiContext();
schema.unBind(uiContext,editorForm);
try {
if (!asDraft) schema.validate();
} catch (ValidationException e) {
for (ValidationError error: e.getValidationErrors()) {
if (error.getSection() != null) {
if (!error.getSection().getOpen()) {
error.getSection().forceOpen(editorForm);