if (sOpenSchemaKey.length() == 0) {
String sMsg = "Programming error: The openSchemaKey was not specified.";
throw new SchemaException(sMsg);
} else {
MetadataDocument document = new MetadataDocument();
schema = document.prepareForCreate(context,sOpenSchemaKey);
}
// un-bind editor values, validate the input
UiContext uiContext = new UiContext();
schema.unBind(uiContext,editorForm);