public Object fetchObject(String urlstring, String postfield, boolean useXML)
public Object fetchObject(String urlstring, boolean useXML)
    public Object fetchObject(String urlstring, String postfield, boolean useXML)        throws Exception {       ConnectionHelper connection =new ConnectionHelper();       connection.setConnection(urlstring);       if( postfield != null) connection.sendData(postfield);       InputStream in = connection.getInputStream();      //URL url = new URL(urlstring);      //URLConnection connection = url.openConnection();      //InputStream in = connection.getInputStream();      Object obj;      if (useXML) {        Element root = XMLObjectFactory.readXMLRoot(in);        if (root == null)	  throw new Exception("XML parse returned null!");        obj = XMLObjectFactory.parseObject(root);      } else {        ObjectInputStream objIn = new ObjectInputStream(in);        obj = objIn.readObject();        objIn.close();      }      // System.out.println("FetchObject ==> returning obj");      return obj;    }