MetadataDocument document = new MetadataDocument();
Schema schema = document.prepareForEdit(context,publisher,sOpenDocumentUuid);
setOpenSchemaKey(schema.getKey());
// check for a defined GXE based Geoportal XML editor
GxeDefinition gxeDefinition = schema.getGxeEditorDefinition();
if (gxeDefinition != null) {
context.getServletRequest().setAttribute("gxeDefinitionKey",gxeDefinition.getKey());
context.getServletRequest().setAttribute("gxeDefinitionLocation",gxeDefinition.getFileLocation());
context.getServletRequest().setAttribute("gxeOpenDocumentId",this.getOpenDocumentUuid());
setNavigationOutcome("catalog.publication.gxeEditor");
return;
}