try { ArrayList list = collectData(support); out.print(list); } catch(Exception e) { System.out.println("CSMART_MetricsServlet Exception: " + e); e.printStackTrace();
try { ArrayList list = collectData(support); if (list != null ){  this.out = response.getOutputStream(); ObjectOutputStream p = new ObjectOutputStream(out); p.writeObject(list); System.out.println("Sent Objects"); } } catch (Exception e) { System.out.println("CSMART_MetricsServlet Exception: " + e); e.printStackTrace(); }
  public void execute(HttpServletRequest request, 			 HttpServletResponse response) throws IOException, ServletException     {            this.out = response.getWriter();            // create a URL parameter visitor      ServletUtil.ParamVisitor vis =         new ServletUtil.ParamVisitor() {	    public void setParam(String name, String value) {	      /* There is no mode, as it only returns the list of agent	       * names, so do nothing but set up for parameter parsing.   	       */	  	    }	  };            // visit the URL parameters; parse params      ServletUtil.parseParams(vis, request);        /**   * Fetch CompletionData and write to output.   */          try {      ArrayList list = collectData(support);      out.print(list);    } catch(Exception e) {      System.out.println("CSMART_MetricsServlet Exception: " + e);      e.printStackTrace();    }    }