} catch (IOException e) {
throw new RuntimeException(e.getMessage(), e);
}
return output.toByteArray();
} else {
UnsafeStringWriter writer = new UnsafeStringWriter();
try {
render(parameters, writer);
} catch (IOException e) {
throw new RuntimeException(e.getMessage(), e);
}
return writer.toString();
}
}