view = (ExportView) viewClass.newInstance();
}
catch (InstantiationException e)
{
// should not happen (class has already been instantiated before)
throw new WrappedRuntimeException(getClass(), e);
}
catch (IllegalAccessException e)
{
// should not happen (class has already been instantiated before)
throw new WrappedRuntimeException(getClass(), e);
}
view.setParameters(tableModel, exportFullList, includeHeader, decorateValues);
return view;
}