if (Modifier.isStatic(m.getModifiers()))
{
final Object o = m.invoke(null, params);
if (o instanceof TableModel)
{
return new TableReportData((TableModel) o);
}
return (ReportData) o;
}
final ClassLoader classLoader = getClassLoader();
final Class c = classLoader.loadClass(className);
final Object o = c.newInstance();
if (o == null)
{
throw new ReportDataFactoryException
("Unable to instantiate class for non static call.");
}
final Object data = m.invoke(o, params);
if (data instanceof TableModel)
{
return new TableReportData((TableModel) data);
}
return (ReportData) data;
}
catch (ReportDataFactoryException rdfe)
{