setAttribute

Binds an object to this environment, using the name specified. This allows
the pipeline assembly engine to store for its own use objects that souldn't
be exposed to other components (generators, selectors, etc) and therefore
cannot be put in the object model.

If an object of the same name is already bound, the object is replaced.

getOutputStream

Get the output stream where to write the generated resource.
The returned stream is buffered by the environment. If the
buffer size is -1 then the complete output is buffered.
If the buffer size is 0, no buffering takes place.
This method replaces getOutputStream().