* @throws ParserConfigurationException
* @throws DependencyException
* @throws ServiceException
*/
public void setXMLDocument(String omexml) throws ParserConfigurationException, SAXException, IOException, DependencyException, ServiceException {
OMEXMLService svc = new ServiceFactory().getInstance(OMEXMLService.class);
OMEModelObject root = svc.createOMEXMLRoot(omexml);
if (! (root instanceof OME))
throw new ServiceException("Root of XML document wasn't OME");
this.omexml = (OME)root;
}