validator.validate(source, result);
return (Document) result.getNode();
} catch (final SAXException exc) {
throw new ConfigurationException(exc);
} catch (final ParserConfigurationException exc) {
throw new ConfigurationException(exc);
} catch (final IOException exc) {
throw new ConfigurationException(exc);
}
}