class CharSequenceConverter implements Converter {

    @Override
    public void marshal(
            Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
        writer.setValue(source.toString());
    }

    @Override
    public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean canConvert(Class type) {
        return CharSequence.class.isAssignableFrom(type);
    }
}

        if (context.getRequiredType() == StringBuilder.class) {
            return new StringBuilder(reader.getValue());
        } else {
            return reader.getValue();
        }
    
<no_super_class>