addSpaces(sb,5);
sb.append("},");
addSpaces(sb,5);
sb.append("\"criteria\": {");
addSpaces(sb,6);
Criteria criteria = eu.getCriteria();
Envelope envelope = criteria.getBBox();
OptionsBounds options = criteria.getBBoxOption();
AimsContentTypes ct = criteria.getContentType();
statWriter.writeElement("fromDate",String.valueOf(criteria.getFromDate()),true,false);
addSpaces(sb,6);
statWriter.writeElement("toDate",String.valueOf(criteria.getToDate()),true,false);
addSpaces(sb,6);
statWriter.writeElement("searchText",String.valueOf(criteria.getSearchText()),true,false);
addSpaces(sb,6);
statWriter.writeElement("maxRecords",String.valueOf(criteria.getMaxRecords()),true,false);
addSpaces(sb,6);
statWriter.writeElement("sortOption",String.valueOf(criteria.getSortOption()),false,false);
addSpaces(sb,5);
String[] dc = criteria.getDataCategory();
sb.append("},");
addSpaces(sb,5);
Query qry = eu.getQuery();
// JSONObject qjso = new JSONObject();
// qjso.put("criteria", qry.toString());