import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
public class PermissionsURLTag extends TagSupport {
<BUG>public static String doTag(
</BUG>
String redirect, String modelResource,
String modelResourceDescription, String resourcePrimKey, String var,
<BUG>boolean writeOutput, PageContext pageContext)
throws Exception {</BUG>
HttpServletRequest request =

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
public class PermissionsURLTag extends TagSupport {
public static void doTag(
String redirect, String modelResource,
String modelResourceDescription, String resourcePrimKey, String var,
PageContext pageContext)
throws Exception {
HttpServletRequest request =
