public static synchronized ByteArrayOutputStream export(Type type, JasperPrint print) {
if (logger == null) {
logger = LoggerProducer.create(Logger.class);
}
ResourceBundle bundle = Beans.getReference(ResourceBundle.class, new NameQualifier("demoiselle-report-bundle"));
logger.debug(bundle.getString("generating-report", type.name()));
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try {
switch (type) {