document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import com.sap.gateway.ip.core.customdev.util.Message;
  2.     import java.util.HashMap;
  3.    
  4.     def Message processData(Message message) {
  5.        if (message != null) {      
  6.            messageLogFactory.getMessageLog(message)?.addAttachmentAsString(\'Initial payload:\', message.getBody(String), \'text/plain\')
  7.       }
  8.        return message;
  9. }
  10.    
');