try {
final Reader rdr = ((Clob) value).getCharacterStream();
while (rdr.read(cbuf) >= 0) {
cbuf.rewind();
sb.append(cbuf);
cbuf.rewind();
}
} catch (IOException e) {
throw new ConversionException("Error reading from clob", e);
} catch (SQLException e) {
throw new ConversionException("Error reading from clob", e);