static void writeCursorTheme(CursorTheme theme, BufferedWriter writer) throws IOException {
        writer.write(XML_START_TAG);
        XMLUtils.writeXmlAttribute(ID, theme.getId(), writer);
        XMLUtils.writeXmlAttribute(NAME, theme.getName(), writer);
        XMLUtils.writeXmlAttribute(TYPE, theme.getType(), writer);

        String description = theme.getDescription();
        if (description != null) {
            XMLUtils.writeXmlAttribute(DESCRIPTION, description, writer);
        }
        writer.write(XMLUtils.CLOSING_BRACE);
        for (CursorAsset asset : theme.getAssets()) {
            CursorAssetFactory.writeCursorAsset(asset, writer);
        }
        writer.write(XML_END_TAG);
        writer.write(XMLUtils.CLOSING_BRACE);
    }
static void writeCursorTheme ( CursorTheme theme , BufferedWriter writer ) throws IOException { writer . write ( XML_START_TAG ) ; XMLUtils . writeXmlAttribute ( ID , theme . getId ( ) , writer ) ; XMLUtils . writeXmlAttribute ( NAME , theme . getName ( ) , writer ) ; XMLUtils . writeXmlAttribute ( TYPE , theme . getType ( ) , writer ) ; String description = theme . getDescription ( ) ; if ( description != null ) { XMLUtils . writeXmlAttribute ( DESCRIPTION , description , writer ) ; } writer . write ( XMLUtils . CLOSING_BRACE ) ; for ( CursorAsset asset : theme . getAssets ( ) ) { CursorAssetFactory . writeCursorAsset ( asset , writer ) ; } writer . write ( XML_END_TAG ) ; writer . write ( XMLUtils . CLOSING_BRACE ) ; }
TODO use XmlSerializer