msgPackScriptResponseMessage.Request = specificMessage.Request;
msgPackScriptResponseMessage.Results.set(result);
if (session != null){
msgPackScriptResponseMessage.Bindings.putAll(session.getBindings());
}
msgPackScriptResponseMessage.validateMetaData();
return msgPackScriptResponseMessage;
}
public static List<String> convertResultToConsoleLines(final Object result) throws Exception {
final ConsoleResultConverter converter = new ConsoleResultConverter(new StringWriter());