private String generateReturnXml(){
		StringBuffer xml = new StringBuffer(XmlUtils.getXmlHeader(FDef.DEFAULT_ENCODING));
		xml.append("<root>\n");
		Iterator<?> it = returnData.entrySet().iterator();
		if(!result){
			xml.append("\t<params>\n");
			while (it.hasNext()) {
				@SuppressWarnings("rawtypes")
				Map.Entry pairs = (Map.Entry)it.next();
				if(StringUtils.endsWithAny(pairs.getKey().toString(), "ErrorMsg","ErrorCode","errorSqlCode","errorSqlStatus"))
					xml.append("\t\t<param id=\"").append(pairs.getKey()).append("\" type=\"STRING\">").append(StringEscapeUtils.escapeXml11(pairs.getValue().toString())).append("</param>\n");
			}
			xml.append("\t</params>\n");
			xml.append("</root>");
		}else{
			StringBuffer paramXml = new StringBuffer("\t<params>\n");
			StringBuffer modelXml = new StringBuffer();
			while (it.hasNext()) {
				@SuppressWarnings("rawtypes")
				Map.Entry pairs = (Map.Entry)it.next();
				if(pairs.getValue() instanceof Model)
					modelXml.append(XmlUtils.convertModelToXml((Model) pairs.getValue()));
				else
					paramXml.append("\t\t<param id=\"").append(pairs.getKey()).append("\" type=\"STRING\">").append(StringEscapeUtils.escapeXml11(pairs.getValue().toString())).append("</param>\n");
			}
			paramXml.append("\t</params>\n");
			xml.append(paramXml).append(modelXml).append("</root>");
		}
		if(StringUtils.equalsIgnoreCase(ServerUtils.getServerVariable(FDef.OUT_DEBUG), "true")){
			System.out.println("******************************************OUT DATA START******************************************");
			System.out.println(xml);
			System.out.println("******************************************  OUT DATA END  ******************************************");
		}
		return xml.toString();
	}