}
private void writeArea(HttpServletRequest request, Object area, Object value) throws IOException, ServletException {
if (layoutTag != null && areas != null) {
if (!ObjectUtils.isBlank(area)) {
HtmlGrid oldGrid = (HtmlGrid) request.getAttribute("grid");
Object oldGridArea = request.getAttribute("gridArea");
StringWriter body = new StringWriter();
boolean contextSet = false;
try {
HtmlGrid grid = layoutTag.getGrid(request, area);
Object gridArea = layoutTag.getAreaName(request, area);
if (grid != null) {
String context = grid.getContexts().get(String.valueOf(gridArea));
if (!ObjectUtils.isBlank(context)) {
contextSet = true;
ContextTag.Static.pushContext(request, context);
}