* It converts from xml to object Graph
* @param xml String of xml
* @return Object Graph
*/
public Graph convertiXmlInGraph(String xml){
Graph gra=new Graph();
try{
StringBuffer xmlStr = new StringBuffer(xml);
JAXBContext jaxbcontext=JAXBContext.newInstance("net.battlehorse.XGrapher.gen.model");
Unmarshaller unMarshaller=jaxbcontext.createUnmarshaller();
JAXBElement<Graph> g= (JAXBElement<Graph>)unMarshaller.unmarshal( new StreamSource( new StringReader( xmlStr.toString() ) ) );