protected void fillEmptyResourceFromXml(ResourceInterface resource, String xml) throws ApsSystemException {
try {
SAXParserFactory parseFactory = SAXParserFactory.newInstance();
SAXParser parser = parseFactory.newSAXParser();
InputSource is = new InputSource(new StringReader(xml));
ResourceHandler handler = new ResourceHandler(resource, this.getCategoryManager());
parser.parse(is, handler);
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "fillEmptyResourceFromXml");
throw new ApsSystemException("Error on loading resource", t);
}