//get output chars and set to output
try {
StringBuilder sb = userSessionsOutput.getSessionOutputMap().get(key);
if (sb != null) {
SessionOutput sessionOutput = new SessionOutput();
sessionOutput.setSessionId(sessionId);
sessionOutput.setHostSystemId(key);
sessionOutput.setOutput(sb.toString());
if (StringUtils.isNotEmpty(sessionOutput.getOutput())) {
outputList.add(sessionOutput);
if ("true".equals(enableAudit)) {
SessionAuditDB.insertTerminalLog(con, sessionOutput);
}