public static JSONObject showException(Exception e) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw);
		e.printStackTrace(pw);
		
		JSONObject jo = new JSONObject();
		try
		{
			jo.put("rtnCode", "500 internal server error");
			String[] aSplitted = sw.toString().split("\n");
			for(int i=0; i<aSplitted.length; i++) {
				jo.append("stackTrace", aSplitted[i]);
			}
		} catch (JSONException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		return jo;
	}