Program: 90674
Project: 90674
Buggy source:
/** 
 * Method invoked when the start tag is encountered.
 * @throws JspException  if an error occurs.
 */
public int doStartTag() throws JspException {
  evaluatePortletId();
  ServletContext servletContext=pageContext.getServletContext();
  DriverConfiguration driverConfig=(DriverConfiguration)servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
  PortletWindowConfig windowConfig=driverConfig.getPortletWindowConfig(evaluatedPortletId);
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + windowConfig);
  }
  PortalRequestContext portalEnv=PortalRequestContext.getPortalEnvironment((HttpServletRequest)pageContext.getRequest());
  PortalURL portalURL=portalEnv.getRequestedPortalURL();
  PortletWindow window=new PortletWindowImpl(windowConfig,portalURL);
  Map windowStates=portalURL.getWindowStates();
  for (Iterator it=windowStates.keySet().iterator(); it.hasNext(); ) {
    String windowId=(String)it.next();
    WindowState windowState=(WindowState)windowStates.get(windowId);
    if (WindowState.MAXIMIZED.equals(windowState) && !window.getId().getStringId().equals(windowId)) {
      return SKIP_BODY;
    }
  }
  PortalServletRequest portalRequest=new PortalServletRequest((HttpServletRequest)pageContext.getRequest(),window);
  PortalServletResponse portalResponse=new PortalServletResponse((HttpServletResponse)pageContext.getResponse());
  PortletContainer container=(PortletContainer)servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
  try {
    container.doRender(window,portalRequest,portalResponse);
    response=portalResponse;
    status=SUCCESS;
  }
 catch (  Throwable th) {
    status=FAILED;
    throwable=th;
  }
  return EVAL_BODY_INCLUDE;
}

Fixed version (ground truth):
/** 
 * Method invoked when the start tag is encountered.
 * @throws JspException  if an error occurs.
 */
public int doStartTag() throws JspException {
  evaluatePortletId();
  ServletContext servletContext=pageContext.getServletContext();
  DriverConfiguration driverConfig=(DriverConfiguration)servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
  PortletWindowConfig windowConfig=driverConfig.getPortletWindowConfig(evaluatedPortletId);
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + windowConfig);
  }
  PortalRequestContext portalEnv=PortalRequestContext.getContext((HttpServletRequest)pageContext.getRequest());
  PortalURL portalURL=portalEnv.getRequestedPortalURL();
  PortletWindow window=new PortletWindowImpl(windowConfig,portalURL);
  Map windowStates=portalURL.getWindowStates();
  for (Iterator it=windowStates.keySet().iterator(); it.hasNext(); ) {
    String windowId=(String)it.next();
    WindowState windowState=(WindowState)windowStates.get(windowId);
    if (WindowState.MAXIMIZED.equals(windowState) && !window.getId().getStringId().equals(windowId)) {
      return SKIP_BODY;
    }
  }
  PortalServletRequest portalRequest=new PortalServletRequest((HttpServletRequest)pageContext.getRequest(),window);
  PortalServletResponse portalResponse=new PortalServletResponse((HttpServletResponse)pageContext.getResponse());
  PortletContainer container=(PortletContainer)servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
  try {
    container.doRender(window,portalRequest,portalResponse);
    response=portalResponse;
    status=SUCCESS;
  }
 catch (  Throwable th) {
    status=FAILED;
    throwable=th;
  }
  return EVAL_BODY_INCLUDE;
}