Hi, returning a StringWriter seems strange to me. How about a String - writer.toString() instead of writer? -hh