Bug 1050014 - Cannot deploy bundle to EAP domain mode

Isn't it usually the responsibility of the caller to close any streams passed to a method? If at all possible to do this in plugin container, I'd prefer doing that instead of relying on the resource components to remember to do this.