Documents bean = (Documents)JAIOBeanFactory.getInstance().getBean(Documents.class);
String docPath = (String)((JAIOUserSessionParameters)userSessionPars).getAppParams().get(ApplicationConsts.DOC_PATH);
Document document = bean.loadDocumentVersion(vo,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),docPath);
context.setAttribute(document.getDocId(),document.getDoc());
return new VOResponse(document.getDocId());
}
catch (Throwable ex) {
Logger.error(userSessionPars.getUsername(),this.getClass().getName(),"executeCommand","Error while processing request",ex);
return new ErrorResponse(ex.getMessage());
}