createSampleSites();
}
private void createSampleSites() throws SystemException
{
VisualFormatter visualFormatter = new VisualFormatter();
File file = new File(CmsPropertyHandler.getSQLUpgradePath() + File.separator + "www.infoglue.org.zip");
if(file == null || !file.exists())
throw new SystemException("The file upload must have gone bad as no example site was found.");
String exportId = "Import_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm");
ProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);
try
{
OptimizedImportController.importRepositories(file, "false", null, null, processBean);