public XPrintResult generatePDF(String sessionId, XViewModel xViewModel, XPrintConfiguration config) throws SessionExpiredException {
try {
return generatePdf(sessionId, getLoggedInUser(sessionId), xViewModel, config);
} catch (PaloGwtCoreException e) {
UserSession userSession = getUserSession(sessionId);
throw new SessionExpiredException(userSession.translate("noAccount"), e);
}
}