public DataModel getExistingExports()
{
if (existingExports == null)
{
Locale locale = beanContext.getLocale();
MigrationService migrationService = getConsumer().getMigrationService();
List<ExportInfo> availableExportInfos = migrationService.getAvailableExportInfos();
List<ExportInfoDisplay> exportDisplays = new ArrayList<ExportInfoDisplay>(availableExportInfos.size());
for (ExportInfo exportInfo : availableExportInfos)
{
exportDisplays.add(new ExportInfoDisplay(exportInfo, locale, migrationService.getStructureProvider()));
}
existingExports = new ListDataModel(exportDisplays);
}
return existingExports;