withParameter(EXPORT_FOR_USER, getUserDetail()).
withParameter(EXPORT_LANGUAGE, getLanguage()).
withParameter(EXPORT_TOPIC, getCurrentFolderId()).
inFormat(inFormat.name());
aKmeliaPublicationExporter().export(descriptor, publication);
<BUG>} catch (Exception ex) {
SilverTrace
.error("kmelia", "KmeliaSessionControl.KmeliaSessionController.generateDocument()",
"root.EX_CANT_EXPORT_PUBLICATION", ex);</BUG>
if (document != null) {

withParameter(EXPORT_FOR_USER, getUserDetail()).
withParameter(EXPORT_LANGUAGE, getLanguage()).
withParameter(EXPORT_TOPIC, getCurrentFolderId()).
inFormat(inFormat.name());
aKmeliaPublicationExporter().export(descriptor, publication);
} catch (Exception ex) {
SilverLogger.getLogger(this).error("Publication export failure", ex);
if (document != null) {
