public static Set getSupportedFormats() {
if (supportedFormats == null) {
//LiteRenderer renderer = null;
String[] mimeTypes = null;
LiteRenderer2 testRenderer = null;
try {
testRenderer = new LiteRenderer2();
mimeTypes = ImageIO.getWriterMIMETypes();
} catch (NoClassDefFoundError ncdfe) {
supportedFormats = Collections.EMPTY_SET;
LOGGER.warning("could not find jai: " + ncdfe);