public void ReplaceXMLEventType(String xmlEventTypeName, ConfigurationEventTypeXMLDOM config) { SchemaModel schemaModel = null; if (config.SchemaResource != null || config.SchemaText != null) { try { schemaModel = XSDSchemaMapper.LoadAndMap(config.SchemaResource, config.SchemaText); } catch (Exception ex) { throw new ConfigurationException(ex.Message, ex); } } try { _eventAdapterService.ReplaceXMLEventType(xmlEventTypeName, config, schemaModel); } catch (EventAdapterException e) { throw new ConfigurationException("Error updating XML event type: " + e.Message, e); } }