else
{
Iterator closers = muleContext.getRegistry().lookupObjects(StreamCloser.class).iterator();
while (closers.hasNext())
{
StreamCloser closer = (StreamCloser) closers.next();
if (closer.canClose(stream.getClass()))
{
closer.close(stream);
}
else
{
log.debug("Unable to find an StreamCloser for the stream type: " + stream.getClass()
+ ", the stream: " + stream + " will not be closed.");