class StandardCSSSerializer implements IStandardCSSSerializer {




    public StandardCSSSerializer() {
        super();
    }




    public void serializeValue(final Object object, final Writer writer) {<FILL_FUNCTION_BODY>}






    private static void writeValue(final Writer writer, final Object object) throws IOException {
        if (object == null) {
            writeNull(writer);
            return;
        }
        if (object instanceof CharSequence) {
            writeString(writer, object.toString());
            return;
        }
        if (object instanceof Character) {
            writeString(writer, object.toString());
            return;
        }
        if (object instanceof Number) {
            writeNumber(writer, (Number) object);
            return;
        }
        if (object instanceof Boolean) {
            writeBoolean(writer, (Boolean) object);
            return;
        }
        writeString(writer, object.toString());
    }


    private static void writeNull(final Writer writer) throws IOException {
        writer.write(""); // There isn't really a 'null' token in CSS
    }


    private static void writeString(final Writer writer, final String str) throws IOException {
        writer.write(CssEscape.escapeCssIdentifier(str));
    }


    private static void writeNumber(final Writer writer, final Number number) throws IOException {
        writer.write(number.toString());
    }


    private static void writeBoolean(final Writer writer, final Boolean bool) throws IOException {
        writer.write(bool.toString());
    }



}

        try {
            writeValue(writer, object);
        } catch (final IOException e) {
            throw new TemplateProcessingException(
                    "An exception was raised while trying to serialize object to CSS", e);
        }
    
<no_super_class>