throw new IllegalStateException(
"getPortletOutputStream can't be used "
+ "after getWriter was invoked.");
}
if (wrappedWriter == null) {
wrappedWriter = new PrintWriterServletOutputStream(
getHttpServletResponse().getWriter());
}
usingStream = true;
return wrappedWriter;
}