if (job == null) {
ar.setActionExitCode(ActionReport.ExitCode.FAILURE);
ar.setMessage(strings.getLocalString("getPayload.wrong.commandinstance.id", "Command instance {0} does not exist.", jobID));
return;
}
Outbound jobPayload = job.getPayload();
if (jobPayload == null) {
ar.setMessage(strings.getLocalString("getPayload.nopayload", "Outbound payload does not exist."));
return; //Just return. This is OK.
}
Outbound paylaod = context.getOutboundPayload();
if ((paylaod instanceof PayloadImpl.Outbound) && (jobPayload instanceof PayloadImpl.Outbound)) {
PayloadImpl.Outbound destination = (PayloadImpl.Outbound) paylaod;
PayloadImpl.Outbound source = (PayloadImpl.Outbound) jobPayload;
destination.getParts().addAll(source.getParts());
} else {