class SSHShellAbstract {

    protected void populateResult(Map<String, String> returnResult, Throwable e) {
        returnResult.put(OutputNames.RETURN_RESULT, e.getMessage());
        returnResult.put(OutputNames.EXCEPTION, StringUtils.getStackTraceAsString(e));
        returnResult.put(OutputNames.RETURN_CODE, ReturnCodes.FAILURE);
    }

}