Hello,
An issue with cache, or other persistence of objects, is that you can not cache a stream to data (InputStream, FileInputStream, WM stream). So if you flush out your streams like storing to a String, Byte Array, Document. It only matters to eliminate the stream objects as those that are wrappers for primitives (Integer, Float, …), arrays of the like and Documents with fields of the like are safe to be persisted.
This is good to know if you use a BIZDOC as the contentpart is not local to the pipeline until you request it with getContentPart.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods