Why specialize the type to FileOutputStream, it will not work under WMS with this.