Handle Custom Resource in DesignContext

In a view, I have this code that should dump the declarative HTML in the STDOUT

TextField nameField = new testField(); nameField.setIcon(CustomFontIcon.MY_ICON); Design.write(nameField, System.out); This crashes because Vaadin handles only FontAwesome by default as written in the
DesignResourceConverter
:

[code]
public class DesignResourceConverter implements Converter<String, Resource> {

// ...

@Override
public String convertToPresentation(Resource value,
        Class<? extends String> targetType, Locale locale)
        throws Converter.ConversionException {
    if (value instanceof ExternalResource) {
        return ((ExternalResource) value).getURL();
    } else if (value instanceof ThemeResource) {
        return "theme://" + ((ThemeResource) value).getResourceId();
    } else if (value instanceof FontAwesome) {
        return "font://" + ((FontAwesome) value).name();
    } else if (value instanceof FileResource) {
        String path = ((FileResource) value).getSourceFile().getPath();
        if (File.separatorChar != '/') {
            // make sure we use '/' as file separator in templates
            return path.replace(File.separatorChar, '/');
        } else {
            return path;
        }
    } else {
        throw new Converter.ConversionException("unknown Resource type - "
                + value.getClass().getName());
    }
}

// ...

}
[/code]How can I register my own converter to handle (for instance) another FontIcon ?

Thank you