* @param locale
* @return
* @throws MavenReportException
*/
public String getReport(Locale locale) throws MavenReportException {
XhtmlSinkFactory sinkFactory = new XhtmlSinkFactory();
Sink sink;
JDependReportGenerator report = new JDependReportGenerator();
ByteArrayOutputStream htmlStream = new ByteArrayOutputStream();
try
{
sink = (Sink)sinkFactory.createSink(htmlStream);
}
catch (Exception e)
{
e.printStackTrace();
throw new MavenReportException("Couldn't find sink: " + e, e);