public File exportLayoutsAsFile( long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate) throws Exception { try { ImportExportThreadLocal.setLayoutExportInProcess(true); return doExportLayoutsAsFile( groupId, privateLayout, layoutIds, parameterMap, startDate, endDate); } finally { ImportExportThreadLocal.setLayoutExportInProcess(false); } }