code: public static void setSREFromXML(ISREInstall sre, String xml) throws CoreException {
  		try {
  			final Element root = parseXML(xml, false);
  			sre.setFromXML(root);
  		} catch (Throwable e) {
  			throw new CoreException(SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, e));
  		}
  	}
docs: Returns the XML representation of the given SRE.
  
  @param sre the SRE to serialize.
  @param xml the XML representation of the given SRE.
  @throws CoreException if trying to compute the XML for the SRE state encounters a problem.