if (out == null) {
throw new NullPointerException("No outputstream specified for process");
}
// Create a wrapper environment for the subrequest to be processed.
EnvironmentWrapper wrapper = new EnvironmentWrapper(env, uri, "", getLogger());
wrapper.setURI("",uri);
wrapper.setOutputStream(out);
wrapper.setAttribute("bean-dict", biz);
// Attermpt to start processing the wrapper environment
Object key = CocoonComponentManager.startProcessing(wrapper);
Processor processor = null;
boolean result = false;
try {
// Retrieve a processor instance
processor = (Processor)this.manager.lookup(Processor.ROLE);
// Enter the environment
CocoonComponentManager.enterEnvironment(wrapper, this.manager, processor);
// Process the subrequest
result = processor.process(wrapper);
wrapper.commitResponse();
out.flush();
// Return whatever the processor returned us
return(result);
} catch (Exception any) {