class XmlConverter implements Converter {

    @Override
    public String convert(final String xml, final String name) {
        String json;
        try {
            json = XML.toJSONObject(xml).toString();
        } catch (JSONException e) {
            logger.debug("Couldn't convert to JSON the following XML: " + xml, e);
            json = "";
        }
        return json;
    }

}