void writeToResponse (String text, ResponseTrans res) {
void writeToResponse (Object value, ResponseTrans res, boolean useDefault) { String text; if (value == null) { if (useDefault) text = (String) parameters.get ("default"); else return; } else { text = value.toString (); }
	void writeToResponse (String text, ResponseTrans res) {	    if (text == null || text.length() == 0)	        return;	    String encoding = (String) parameters.get ("encoding");	    String prefix = (String) parameters.get ("prefix");	    String suffix = (String) parameters.get ("suffix");	    res.write (prefix);	    res.write (encode (text, encoding));	    res.write (suffix);	}