575859606162636465
private Renderer getRenderer(String format) { if (format.equals(Finals.FORMAT_JSON)) { return new JSONRenderer(); } if (format.equals(Finals.FORMAT_XML)) { return new XMLRenderer(); } return null; }